Datatips: fix offscreen bug (not in datatip mode) 38/14138/2
Calixte DENIZET [Wed, 26 Mar 2014 13:31:52 +0000 (14:31 +0100)]
Change-Id: Ib75f371fc07f43c14d88ebaa78bf4209c5539320

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;
     }