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 45749 - NPE when opening help after unsuccessfull rename
Summary: NPE when opening help after unsuccessfull rename
Status: CLOSED DUPLICATE of bug 45606
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 15:28 UTC by Milan Kubec
Modified: 2007-04-03 18:02 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (4.63 KB, text/plain)
2004-06-30 15:28 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2004-06-30 15:28:11 UTC
[custom build 20040630, JDK 1.4.2_04]

I did rename as described in #45745 and in the
window with error I presses 'Help'. All I got was
NullPointerException.
Comment 1 Milan Kubec 2004-06-30 15:28:54 UTC
Created attachment 16082 [details]
exc stack trace
Comment 2 Jan Becicka 2004-07-02 09:03:00 UTC
NPE was thrown from this line:
Help help = (Help) Lookup.getDefault().lookup(Help.class);

lookup() returned null. Openide guys, please help. Is it correct, that
this call returned null? If it is correct, does it mean, that
"Help_or_what_is_the_name" library is not available? Or should we look
for Help.class by other call?

If you think, that null is correct return value, please reassign this
issue back to refactoring module. Thanks.

Comment 3 _ ttran 2004-07-06 09:08:24 UTC
lookup(Class clazz) can return null if clazz is not registered. 

Jarda is on vacation, Petr Nejedly may be able to help
Comment 4 Jaroslav Tulach 2004-07-06 16:29:56 UTC
Lookup.lookup (Clazz) can always return null. Any code that expects
otherwise is broken. Fix it.

However the reason why it returned null may be cause by bug 45606
which was very likely active on 20040630.

*** This issue has been marked as a duplicate of 45606 ***
Comment 5 Milan Kubec 2004-07-16 14:24:50 UTC
Verified duplicate.