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 143150 - Save fails in editable diff.
Summary: Save fails in editable diff.
Status: VERIFIED DUPLICATE of bug 142854
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 10:07 UTC by Peter Pis
Modified: 2008-08-12 19:26 UTC (History)
1 user (show)

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 Peter Pis 2008-08-07 10:07:33 UTC
Product Version: NetBeans IDE 6.5 Beta (Build 200808070301)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
Userdir: D:\ide\65-beta\user6

Steps:
1. Open project under CVS control.
2. Modify the file and invoke "CVS | Diff" action.
3. In the right panel edit the file and push "Ctrl+S".

NPE is thrown.
 
SEVERE [global]
java.lang.NullPointerException
        at org.netbeans.modules.xml.schema.completion.util.CompletionUtil.canProvideCompletion(CompletionUtil.java:725)
        at
org.netbeans.modules.xml.schema.completion.SchemaBasedCompletionProvider.getAutoQueryTypes(SchemaBasedCompletionProvider.java:74)
        at org.netbeans.modules.editor.completion.CompletionImpl.insertUpdate(CompletionImpl.java:301)
        at
org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:70)
        at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
        at org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1612)
        at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:770)
        at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.insertString(BaseKit.java:1136)
        at org.netbeans.editor.BaseKit$DefaultKeyTypedAction$1.run(BaseKit.java:1103)
        at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:294)
        at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1076)
        at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:1014)
        at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:291)
        at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
Comment 1 Samaresh Panda 2008-08-07 16:18:09 UTC
Same issue 143148.

*** This issue has been marked as a duplicate of 142854 ***
Comment 2 tonybeckham 2008-08-12 19:26:41 UTC
Verified Duplicate