How to find problems in models

I want to check whether a model has problems or errors before performing an action on a node.  I use the following code

System.out.println("Problems: " + node/.getModel().getProblems());
prettyPrint(); I go to the model to which the node belongs, and ask the model for any problems. The model I get is the correct model and I see two type checking errors in the editor, so there are problems. Still, the above code always returns an Iterable that is empty.

Is this not the right way to find problems in a model, or is the getProblems() method broken?


Please sign in to leave a comment.