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.

Bug 46068 - NPE from ElementFinder.getElementBySelection when using TryCatchAction
Summary: NPE from ElementFinder.getElementBySelection when using TryCatchAction
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-13 03:40 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (2.06 KB, text/plain)
2004-07-13 03:40 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-07-13 03:40:06 UTC
040712. I had some source file from the editor
module open (JavaKit I think) and tried
highlighting sample selections of Java code that
contained checked exceptions and pressing
Alt-Ctrl-S for "surround with try-catch". I just
got NPEs. In some cases the IDE was frozen for up
to a couple of minutes before the NPE was thrown.
Comment 1 Jesse Glick 2004-07-13 03:40:31 UTC
Created attachment 16213 [details]
Stack trace
Comment 2 Jesse Glick 2004-07-13 03:41:30 UTC
John Warner expressed interest in this action on nbdev.
Comment 3 Jan Becicka 2004-07-13 08:26:19 UTC
We are sorry, but this feature was dropped for promo-D. It will be
probably implemented in next promotion.

Back to this issue - problem is, that menu item was correctly removed,
but short-cut was still registered.
Fixed.

Checking in java/NbJavaSettingsInitializer.java;
/cvs/editor/src/org/netbeans/modules/editor/java/NbJavaSettingsInitializer.java,v
 <--  NbJavaSettingsInitializer.java
new revision: 1.28; previous revision: 1.27
done
Processing log script arguments...
More commits to come...
Checking in resources/XMLs/DefaultKeyBindings.xml;
/cvs/editor/src/org/netbeans/modules/editor/resources/XMLs/DefaultKeyBindings.xml,v
 <--  DefaultKeyBindings.xml
new revision: 1.8; previous revision: 1.7
done



Comment 4 Quality Engineering 2007-09-20 12:04:59 UTC
Reorganization of java component