Bug 553343 - FileDialog can crash in open() with NPE
Summary: FileDialog can crash in open() with NPE
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.9   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-22 05:18 EST by Stephan Aßmus CLA
Modified: 2019-11-22 05:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Aßmus CLA 2019-11-22 05:18:13 EST
We received a crashlog from a user where org.eclipse.swt.widgets.FileDialog.open() crashed on line 347 (SWT 4.9). These are the lines in question:

346:  OS.beginSheetModalForWindow(panel, parent.view.window(), handler);
347:  NSApplication.sharedApplication().runModalForWindow(parent.view.window());

It is unclear which of the variables have a null value. But "parent" and "parent.view" have both been non-null in the line directly above. NSApplication.sharedApplication() may return null.

Before you dismiss this bug, since it is for an older version of SWT, please check whether the situation is actually any different in this part of the code. The version of macOS on the user's machine was 10.13.6.

I've checked the possible duplicates for this bug, they seem unrelated.