GP-3016: Fix NPE in VariableValueHoverService

This commit is contained in:
Dan 2023-01-13 16:46:29 -05:00
parent d55b7e9aa9
commit 39b34b0497

View file

@ -590,7 +590,7 @@ public class VariableValueHoverService extends AbstractConfigurableHover
public CompletableFuture<VariableValueTable> fillVariableValueTable(VariableValueTable table, public CompletableFuture<VariableValueTable> fillVariableValueTable(VariableValueTable table,
ProgramLocation programLocation, DebuggerCoordinates current, ProgramLocation programLocation, DebuggerCoordinates current,
FieldLocation fieldLocation, Field field, List<String> warnings) { FieldLocation fieldLocation, Field field, List<String> warnings) {
if (traceManager == null || mappingService == null) { if (traceManager == null || mappingService == null || current.getPlatform() == null) {
return null; return null;
} }
VariableEvaluator eval; VariableEvaluator eval;