Avoid NPE for "Mark Occurrences"
authoraxelcl <axelcl>
Wed, 2 Nov 2005 19:52:00 +0000 (19:52 +0000)
committeraxelcl <axelcl>
Wed, 2 Nov 2005 19:52:00 +0000 (19:52 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditor.java

index c10ebf9..458a4ac 100644 (file)
@@ -5615,7 +5615,7 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements I
                        fMarkOccurrenceModificationStamp = currentModificationStamp;
                }
 
-               if (fMarkOccurrenceTargetRegion == null) {
+               if (fMarkOccurrenceTargetRegion == null || fMarkOccurrenceTargetRegion.getLength()==0) {
                        return;
                }