Datatips: fix offscreen bug (not in datatip mode)
[scilab.git] / scilab / modules / gui / src / java / org / scilab / modules / gui / datatip / DatatipCreate.java
index 545e835..954d5d3 100755 (executable)
@@ -170,7 +170,9 @@ public class DatatipCreate {
             controller.setProperty(newDatatip, GraphicObjectProperties.__GO_CLIP_STATE__, 0);
         }
 
-        DatatipManagerMode.getInstance().setLastTip(axesUid, newDatatip);
+        if (DatatipManagerMode.getInstance() != null) {
+            DatatipManagerMode.getInstance().setLastTip(axesUid, newDatatip);
+        }
 
         return newDatatip;
     }