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 93617 - NPE when renaming attribute in source view
Summary: NPE when renaming attribute in source view
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 20:14 UTC by tonybeckham
Modified: 2007-02-19 13:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2007-01-30 20:14:22 UTC
NPE occurs when renaming an element in source view.
It's a regression from
070129_5, i.e. with 070129_5 + jdk1.6, the issue occurs only on
non-winXP.  with 070130_3 + jdk1.6, it occurs on winXP as well.

>System Info: 
  Product Version         = NetBeans IDE 5.5.1 (Build 200701300600)
  Operating System        = Linux version 2.6.17-10-generic running on i386
  Java; VM; Vendor; Home  = 1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03; 

Steps to reproduce:
Open an xml schema.
Switch to source view.
Rename an element.

The following exceptions are thrown:

*********** Exception occurred ************ at 12:02 PM on Jan 30, 2007
java.lang.NullPointerException
        at
org.netbeans.modules.bpel.core.completion.BpelCompletionModelProvider.isBpelFile(BpelCompletionModelProvider.java:75)
        at
org.netbeans.modules.bpel.core.completion.BpelCompletionModelProvider.getModels(BpelCompletionModelProvider.java:44)
        at
org.netbeans.modules.xml.schema.completion.util.CompletionContextImpl.initModels(CompletionContextImpl.java:363)
        at
org.netbeans.modules.xml.schema.completion.CompletionQuery.query(CompletionQuery.java:67)
        at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:195)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
*********** Exception occurred ************ at 12:02 PM on Jan 30, 2007
java.lang.NullPointerException
        at
org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.access$100(DocumentModel.java:815)
[catch] at
org.netbeans.modules.editor.structure.api.DocumentModel$2.run(DocumentModel.java:460)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Samaresh Panda 2007-01-30 23:00:09 UTC
Check for != null.
Comment 2 Denis Anisimov 2007-01-31 08:02:16 UTC
Fixed.
Comment 3 Mikhail Kondratyev 2007-02-19 13:11:05 UTC
Verified