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 254745 - NullPointerException at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport$5.run
Summary: NullPointerException at org.netbeans.modules.xml.multiview.XmlMultiViewEditor...
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: XML Multiview (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-26 08:53 UTC by skygo
Modified: 2015-08-26 13:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 219450


Attachments
stacktrace (3.74 KB, text/plain)
2015-08-26 08:53 UTC, skygo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description skygo 2015-08-26 08:53:57 UTC
This bug was originally marked as duplicate of bug 217639, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201508260002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 10

User Comments:
skygo: cliking on and hibernate cfg file during tutorial from a graph view of a pom




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport$5.run(XmlMultiViewEditorSupport.java:450)
   at org.netbeans.modules.xml.multiview.Utils.runInAwtDispatchThread(Utils.java:193)
   at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport.openView(XmlMultiViewEditorSupport.java:446)
   at org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport.open(XmlMultiViewEditorSupport.java:464)
   at org.openide.awt.ActionDefaultPerfomer.actionPerformed(ActionDefaultPerfomer.java:70)
   at org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:226)
Comment 1 skygo 2015-08-26 08:53:59 UTC
Created attachment 155659 [details]
stacktrace
Comment 2 Svata Dedic 2015-08-26 12:44:29 UTC
What tutorial ? 

While I could add the NPE check, I cannot see a way how null could reach the point of error from reading the code, so I would like to understand how the situation happens, so I'll probably need the exact sources and more precise reproduction steps.
Comment 3 skygo 2015-08-26 13:19:10 UTC
Hi
 I follow this tutorial:

https://netbeans.org/kb/docs/java/maven-hib-java-se.html

database setup.. maven setup...
Everything is fine until
--Adding Hibernate Files and Dependencies--

I'm not fluent in hibernate but the generated xml config file was not valid. I had to cut a <session-factory/> in order to open the file and continue the tutorial.

After showing dependencies graph and going back to the hibernate config file the exception occurs.