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 109186 - NPE during Navigate to Source
Summary: NPE during Navigate to Source
Status: VERIFIED WORKSFORME
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Viktor Lapitski
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-07-10 01:26 UTC by Peter Lam
Modified: 2008-03-27 02:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (68.68 KB, text/plain)
2007-07-10 01:34 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2007-07-10 01:26:17 UTC
using build inetbeans-hudson-trunk-1546-full.zip, NPE pops up after source is opened in editor when Navigate to Source
from UML model. See attached ide log file for complete exceptions.

repro steps:
- create a java project
- create a java-platform uml project
- create a class diagram
- create and name a couple of classes
- generate code for the project to the java project
- navigate to source for any class from uml model, class diagram or uml project tree
Comment 1 Viktor Lapitski 2007-07-10 01:31:23 UTC
i'd exremely appreciate the NPE trace attached - it'd allow to exactly 
pinpoint the problem (as in my relatively fresh build i don't see the problem) 
Comment 2 Peter Lam 2007-07-10 01:34:21 UTC
Created attachment 44857 [details]
ide log file
Comment 3 Viktor Lapitski 2007-07-10 01:43:28 UTC
did you mean this NPE?

java.lang.NullPointerException
	at org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider.initServiceMetadata(WebServicesHintsProvider.java:136)
	at org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider.run(WebServicesHintsProvider.java:104)
	at
org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider$ProblemFinderCompInfo.run(WebServicesHintsProvider.java:174)
[catch] at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1491)
....


As there isn't our code in the NPE (and we haven't had any related 
changes recently) i suppose that it should be reproducible 
with non-UML related operations in Java Editor as well. In this case the 
websvc.editor team will fix it soon i guess.
Comment 4 Peter Lam 2007-07-10 01:59:36 UTC
yes, that's the exception. I don't know what to say but it seems to be happening only with uml-generated source in the
source editor. I don't see the NPE popup when I click on a source editor window (SEW) tab for the source file created in
the java project. However, any time I clicked on the SEW tab for the uml generated source, the NPE pops up. So, I think
there might be something related to the generate source?
Comment 5 Viktor Lapitski 2007-07-10 02:05:02 UTC
thanks for the trace and confirmation. I'll take it from here - either it will 
be gone in my next fresh build, or i'll have new filed for the websvc people 
and make this blocked.  
Comment 6 Peter Lam 2007-07-10 02:11:10 UTC
one more info. Just sometimes, after generating code for a class from the diagram and before doing Navigate to Source,
this NPE also pops up.
Comment 8 Peter Lam 2008-03-27 02:05:56 UTC
just reverified again and it's not repro.