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 157701 - Rename throws NPE but could perhaps do Search&Replace instead
Summary: Rename throws NPE but could perhaps do Search&Replace instead
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Latex (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-31 12:23 UTC by netmackan
Modified: 2009-02-02 20:51 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Stacktrace from when pressing rename on a word. (3.24 KB, text/plain)
2009-01-31 12:26 UTC, netmackan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description netmackan 2009-01-31 12:23:05 UTC
Right-click on a word (that isn't a variable/label etc) and press Rename (Ctrl+R) throws a NullPointerException.

Clearly that is not supposed to happen and instead just do nothing is one option but another option is to map the Rename
to a Replace (Ctrl+H) if it is not a variable which could be what the user mean by renaming a natural language word.
Just a thought.
Comment 1 netmackan 2009-01-31 12:26:05 UTC
Created attachment 76407 [details]
Stacktrace from when pressing rename on a word.
Comment 2 Jan Lahoda 2009-02-02 20:51:52 UTC
I have fixed the NPE:
http://kenai.com/projects/nblatex/sources/mercurial/revision/384

I will keep this report open to think about the fallback to search&replace, although I am not sure if this is doable at all.

Thanks for the report.