X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.spreadsheet.graph%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fgraph%2FSpreadsheetGraphUtils.java;fp=bundles%2Forg.simantics.spreadsheet.graph%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fgraph%2FSpreadsheetGraphUtils.java;h=51f292929c440ff6bde32142ec34222633ad565e;hb=e76829647764a2873224849a40532db6bdef6bdc;hp=ee57745ae857bf6bdf4cfd46ce6b0bba87364c2a;hpb=01ed01d4ec8672b5283c3f033e98f1a874b202f8;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetGraphUtils.java b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetGraphUtils.java index ee57745ae..51f292929 100644 --- a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetGraphUtils.java +++ b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetGraphUtils.java @@ -551,6 +551,7 @@ public class SpreadsheetGraphUtils { Variable contextVariable = Variables.getVariable(graph, parameter); Variable configVariable = Variables.getVariable(graph, parameter2); Variable activeVariable = Variables.switchPossibleContext(graph, configVariable, contextVariable.getRepresents(graph)); + if(activeVariable == null) return Variant.ofInstance("Could not resolve " + configVariable.getURI(graph) + " for " + contextVariable.getURI(graph)); return activeVariable.getVariantValue(graph); } }, new Listener() { @@ -562,7 +563,7 @@ public class SpreadsheetGraphUtils { @Override public void exception(Throwable t) { - LOGGER.error("Error while evaluating variable value", t); + LOGGER.error("Error while evaluating variable value, context = " + context + " uri=" + uri, t); } @Override