Skip to content

Commit

Permalink
Fixed NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Mar 26, 2024
1 parent ce65651 commit 77a309a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected Control createCustomArea(Composite parent) {
containerTreeViewer.setInput(ResourcesPlugin.getWorkspace().getRoot());
if (defaultResourceName != null && !defaultResourceName.isEmpty()) {
IResource resource = findResource(defaultResourceName);
if (!resource.exists()) {
if (resource != null && !resource.exists()) {
resource = resource.getParent();
}
containerTreeViewer.setSelection(new StructuredSelection(resource));
Expand Down

0 comments on commit 77a309a

Please sign in to comment.