Skip to content

Commit b5ff8d9

Browse files
author
jan
committed
Cater for null case reported by #1666
1 parent 7e46346 commit b5ff8d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

io.sloeber.core/src/io/sloeber/core/api/LibraryManager.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ public static IArduinoLibraryVersion getLibraryVersionFromLocation(IFolder libFo
455455
// TODO Auto-generated method stub
456456

457457
if (boardDescriptor != null) {
458-
if(boardDescriptor.getReferencedCoreLibraryPath().isPrefixOf(libFolder.getLocation())) {
458+
IPath libPath=boardDescriptor.getReferencedCoreLibraryPath();
459+
if(libPath!=null && libPath.isPrefixOf(libFolder.getLocation())) {
459460
return getLibrariesHarware(boardDescriptor).get(libFolder.getName());
460461
}
461462
}

0 commit comments

Comments
 (0)