Create a new, empty model with the current version of Papyrus and add the primitive types template during the wizard.
Close the graphical editor
Open the .uml file in the tree editor, it should not load any other models.
Without opening the model in the tree editor, load it into the Query Explorer.
The model entry is marked with error and an exception is thrown and visible in the Error log
This was reported as part of #337, related to dynamic EMF support #199
EMF-IncQuery encountered an error in processing the EMF model. This happened while trying to add the object: org.eclipse.emf.ecore.impl.DynamicEObjectImpl@622605d (eClass: org.eclipse.emf.ecore.impl.EClassImpl@4bb3a234 (name: EClass) (instanceClassName: null) (abstract: false, interface: false))
java.lang.NullPointerException
at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSettingDelegate(EStructuralFeatureImpl.java:830)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSettingDelegate(BasicEObjectImpl.java:1561)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1027)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:998)
at org.eclipse.viatra2.emf.incquery.base.comprehension.EMFModelComprehension.traverseObject(EMFModelComprehension.java:139)
at org.eclipse.viatra2.emf.incquery.base.core.NavigationHelperContentAdapter$1.call(NavigationHelperContentAdapter.java:194)
at org.eclipse.viatra2.emf.incquery.base.core.NavigationHelperContentAdapter$1.call(NavigationHelperContentAdapter.java:1)
at org.eclipse.viatra2.emf.incquery.base.core.NavigationHelperImpl.coalesceTraversals(NavigationHelperImpl.java:627)
at org.eclipse.viatra2.emf.incquery.base.core.NavigationHelperContentAdapter.addAdapter(NavigationHelperContentAdapter.java:190)
This was reported as part of #337, related to dynamic EMF support #199
Example model: