[Bug 204261] NullPointerException at org.netbeans.modules.db.sql.editor.ui.actions.RunSQLAction.isActionEnabled

  • From:
  • To:
  • Subject: [Bug 204261] NullPointerException at org.netbeans.modules.db.sql.editor.ui.actions.RunSQLAction.isActionEnabled
  • Date: Sat, 23 Mar 2013 16:12:34 +0000
  • Auto-submitted: auto-generated

http://netbeans.org/bugzilla/show_bug.cgi?id=204261


 changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #3 from 

 2013-03-23 16:12:34 UTC ---
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.

-- 
Configure bugmail: http://netbeans.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


[Bug 204261] NullPointerException at org.netbeans.modules.db.sql.editor.ui.actions.RunSQLAction.isActionEnabled

matthias42 03/23/2013

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close