Skip to content

Commit 00cb5a3

Browse files
sebthomvrubezhny
authored andcommitted
fix: NPE in AbstractDebugAdapterLaunchShortcut.canLaunch
1 parent 1127271 commit 00cb5a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.eclipse.wildwebdeveloper/src/org/eclipse/wildwebdeveloper/debug/AbstractDebugAdapterLaunchShortcut.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected AbstractDebugAdapterLaunchShortcut(String launchConfigTypeId, String[]
6464
public boolean canLaunch(File file) {
6565
return file.exists() &&
6666
Arrays.stream(contentTypeIds).map(Platform.getContentTypeManager()::getContentType)
67-
.anyMatch(type -> type.isAssociatedWith(file.getName()));
67+
.anyMatch(type -> type != null && type.isAssociatedWith(file.getName()));
6868
}
6969

7070
public boolean canLaunchResource(IResource resource) {
@@ -244,4 +244,4 @@ private boolean match(ILaunchConfiguration launchConfig, File selectedFile) {
244244
}
245245
}
246246

247-
}
247+
}

0 commit comments

Comments
 (0)