This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | NullPointerException at org.netbeans.modules.db.sql.editor.ui.actions.RunSQLAction.isActionEnabled | ||
---|---|---|---|
Product: | db | Reporter: | gerzhedowich <gerzhedowich> |
Component: | SQL Editor | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 182316 |
Attachments: | stacktrace |
Description
gerzhedowich
2011-10-26 09:26:26 UTC
Created attachment 112446 [details]
stacktrace
Only once report from code what is called Milon-times, let's wait for me such reports... Closing this as the offending code: if (FileUtil.getMIMEType(d.getPrimaryFile()) != null // Line 115 && FileUtil.getMIMEType(d.getPrimaryFile()).equals("text/x-sql")) { could only result in an nullpointer exception if the result of context.lookupAll(DataObject.class) contained null, that was assigned to d and the exception is the result. if there is an off by one failure in the exception it could also be FileUtil.getMIMEType(d.getPrimaryFile() switching from non-null to null. There was no further report for about 1.5 years. |