1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

bug 294106 #comment 92: prevent NPE

patch from Mario Pierro
This commit is contained in:
Andrew Gvozdev 2010-03-09 15:27:23 +00:00
parent a60aa3940a
commit 50847671c9

View file

@ -84,7 +84,7 @@ public class BuildConsolePartition extends TypedRegion {
int otherStart = partition.getOffset();
int otherEnd = otherStart + partition.getLength();
boolean overlap = (otherStart >= start && otherStart <= end) || (start >= otherStart && start <= otherEnd);
return overlap && getType().equals(partition.getType()) && getStream().equals(partition.getStream());
return getStream() != null && overlap && getType().equals(partition.getType()) && getStream().equals(partition.getStream());
}
/**