Tools__NewSystemBrowser.st
changeset 17162 97f410dd2b3b
parent 17144 dc7feca53c23
child 17163 4bf9cb558e1c
child 17167 0ee23787057b
--- a/Tools__NewSystemBrowser.st	Fri Dec 09 15:49:38 2016 +0100
+++ b/Tools__NewSystemBrowser.st	Sun Dec 11 21:05:49 2016 +0100
@@ -25065,22 +25065,24 @@
 
 flyByHelpTextFor:aWidget at:aPoint
     |action info label|
-    
-    aWidget = (navigationState canvas builder componentAt:'InfoLabel') ifTrue:[
-        action := aWidget actionAt:aPoint.
-        "/ Transcript show:'action under info label:'; showCR:action.
-        info := action perform:#info ifNotUnderstood:nil.
-        info notNil ifTrue:[
-            ^ info value
-        ].
-        (label := aWidget label) notNil ifTrue:[
-            label isStringCollection ifTrue:[
-                ^ label
-            ].
-            (label widthOn:aWidget) > aWidget width ifTrue:[
-                ^ label
-            ].
-        ]    
+
+    (navigationState notNil and:[navigationState canvas]) notNil ifTrue:[
+        aWidget = (navigationState canvas builder componentAt:'InfoLabel') ifTrue:[
+            action := aWidget actionAt:aPoint.
+            "/ Transcript show:'action under info label:'; showCR:action.
+            info := action perform:#info ifNotUnderstood:nil.
+            info notNil ifTrue:[
+                ^ info value
+            ].
+            (label := aWidget label) notNil ifTrue:[
+                label isStringCollection ifTrue:[
+                    ^ label
+                ].
+                (label widthOn:aWidget) > aWidget width ifTrue:[
+                    ^ label
+                ].
+            ]    
+        ].
     ].
     ^ nil