Skip to content
Snippets Groups Projects
Commit 22f5ff0f authored by Son Lam Pham's avatar Son Lam Pham
Browse files

added null check for observed object

parent 899394c7
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,12 @@ public class EObjectObservableValue extends AbstractObservableValue {
/** Constructor. */
public EObjectObservableValue(Realm realm, EObject eObject, EStructuralFeature structuralFeature) {
super(realm);
if(eObject == null)
throw new NullPointerException();
if(structuralFeature == null)
throw new NullPointerException();
this.eObject = eObject;
this.structuralFeature = structuralFeature;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment