mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE
This commit is contained in:
@@ -170,7 +170,8 @@ public class UsageInfo2UsageAdapter implements UsageInModule,
|
||||
// must iterate in start offset order
|
||||
public boolean processRangeMarkers(Processor<Segment> processor) {
|
||||
for (UsageInfo usageInfo : myMergedUsageInfos) {
|
||||
if (!processor.process(usageInfo.getSegment())) {
|
||||
Segment segment = usageInfo.getSegment();
|
||||
if (segment != null && !processor.process(segment)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user