mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
bug 294106 #comment 92: prevent NPE
patch from Mario Pierro
This commit is contained in:
parent
a60aa3940a
commit
50847671c9
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ public class BuildConsolePartition extends TypedRegion {
|
||||||
int otherStart = partition.getOffset();
|
int otherStart = partition.getOffset();
|
||||||
int otherEnd = otherStart + partition.getLength();
|
int otherEnd = otherStart + partition.getLength();
|
||||||
boolean overlap = (otherStart >= start && otherStart <= end) || (start >= otherStart && start <= otherEnd);
|
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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue