Skip to content

Commit adbf4a5

Browse files
committed
Check if manager is null before accessing it
1 parent 08a9488 commit adbf4a5

File tree

1 file changed

+5
-1
lines changed
  • resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources

1 file changed

+5
-1
lines changed

resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Resource.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,11 @@ public ResourceAttributes getResourceAttributes() {
12561256
if (!isAccessible() || isVirtual()) {
12571257
return null;
12581258
}
1259-
return getLocalManager().attributes(this);
1259+
FileSystemResourceManager manager = getLocalManager();
1260+
if (manager == null) {
1261+
return null;
1262+
}
1263+
return manager.attributes(this);
12601264
}
12611265

12621266
/**

0 commit comments

Comments
 (0)