Skip to content

NPE with new response types #13

Description

@Chris2011

when I call google.de or twitter.de with or w/o www doesn't matter, I got this exception:

java.lang.NullPointerException
	at org.netbeans.modules.xml.text.breadcrumbs.BreadcrumbProvider.update(BreadcrumbProvider.java:128)
	at org.netbeans.modules.xml.text.breadcrumbs.BreadcrumbProvider.caretUpdate(BreadcrumbProvider.java:89)
	at java.desktop/javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:412)
	at java.desktop/javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:4489)
	at java.desktop/javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:4511)
	at org.netbeans.api.editor.caret.EditorCaret$6.run(EditorCaret.java:1733)
	at org.netbeans.modules.editor.lib2.view.ViewUtils.runInEDT(ViewUtils.java:413)
	at org.netbeans.api.editor.caret.EditorCaret.fireStateChanged(EditorCaret.java:1742)
	at org.netbeans.api.editor.caret.EditorCaret.runTransaction(EditorCaret.java:1664)
	at org.netbeans.api.editor.caret.EditorCaret.runTransaction(EditorCaret.java:1559)
	at org.netbeans.api.editor.caret.EditorCaret.modelChanged(EditorCaret.java:1895)
	at org.netbeans.api.editor.caret.EditorCaret.access$1000(EditorCaret.java:143)
	at org.netbeans.api.editor.caret.EditorCaret$ListenerImpl.propertyChange(EditorCaret.java:2604)
	at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
	at java.desktop/java.awt.Component.firePropertyChange(Component.java:8731)
	at java.desktop/javax.swing.text.JTextComponent.setDocument(JTextComponent.java:456)
	at java.desktop/javax.swing.JEditorPane.setEditorKit(JEditorPane.java:1057)
	at com.javierllorente.netbeans.rest.client.ui.ResponsePanel.setContentType(ResponsePanel.java:116)
	at com.javierllorente.netbeans.rest.client.ui.RestClientTopComponent.lambda$updateResponsePanel$5(RestClientTopComponent.java:312)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
[catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

I think it has todo with the new MimeTypes. I changed it back to the original one and it worked before. So it seems that this is related to #12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions