[ https://issues.apache.org/jira/browse/NETBEANS-4623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182666#comment-17182666 ]
Karl Tauber commented on NETBEANS-4623: --------------------------------------- Fix for NETBEANS-4444 (PR [2188|https://github.com/apache/netbeans/pull/2188]) is probably responsible for this issue (and for NETBEANS-4620 too). The {{NullPointerException}} in {{BasicTextUI.modelToView()}} (e.g. in attached idelog-3.txt) occurs within the property change listener added to {{SearchComboBoxEditor}} at in above PR [at line 137|https://github.com/junichi11/netbeans/blob/a44b5b225f4cf1fc72a5a82416e58a0b7cde3fa9/ide/editor.search/src/org/netbeans/modules/editor/search/SearchComboBoxEditor.java#L137]. See {{SearchComboBoxEditor$3.propertyChange()}} in following stack (from idelog-3.txt): {noformat} java.lang.NullPointerException at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1104) at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1089) at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1065) at org.netbeans.modules.editor.search.SearchComboBoxEditor$ManageViewPositionListener.changed(SearchComboBoxEditor.java:290) at org.netbeans.modules.editor.search.SearchComboBoxEditor$ManageViewPositionListener.removeUpdate(SearchComboBoxEditor.java:277) at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:91) at java.desktop/javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:261) at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1650) at org.netbeans.editor.BaseDocument.handleRemove(BaseDocument.java:1022) at org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(BaseDocument.java:2639) at java.desktop/javax.swing.text.DocumentFilter.remove(DocumentFilter.java:79) at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:935) at org.netbeans.modules.editor.search.SearchComboBoxEditor$3.propertyChange(SearchComboBoxEditor.java:137) 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:8728) at java.desktop/javax.swing.text.JTextComponent.setCaret(JTextComponent.java:604) at org.netbeans.editor.BaseTextUI.uninstallUI(BaseTextUI.java:251) {noformat} At this time field {{BasicTextUI.editor}} is {{null}} and causes the NPE. And the NPE in {{modelToView()}} prevents the installation of a new UI for the text component, which causes subsequent NPEs e.g. in {{BasicTextUI.getPreferredSize()}}. > NullPointerException in BasicTextUI.getPreferredSize > ---------------------------------------------------- > > Key: NETBEANS-4623 > URL: https://issues.apache.org/jira/browse/NETBEANS-4623 > Project: NetBeans > Issue Type: Bug > Affects Versions: 12.1 > Environment: Product Version: Apache NetBeans IDE 12.1-beta3 > Java: 14.0.2; Java HotSpot(TM) 64-Bit Server VM 14.0.2+12-46 > Runtime: Java(TM) SE Runtime Environment 14.0.2+12-46 > System: Windows 10 version 10.0 running on amd64 > Reporter: Czukowski > Assignee: Karl Tauber > Priority: Major > Attachments: idelog-2.txt, idelog-3.txt, idelog-4.txt, idelog-5.txt, > idelog-6.txt, idelog-7.txt, idelog-8.txt, image-2020-07-23-14-53-04-101.png > > > Was testing 12.1 beta1 today, during my normal activity I noticed an error > icon in the status bar at the bottom. The IDE was responsive and everything > seemingly working so far. > Upon clicking the icon, where the Notification panel would appear, only a > blank space appears instead of it. If I try to open a file from Project or > Files panels, similar things happen, editor tabs do open, but they are blank > and gray. > Other IDE dialogs (that are not panels) can still be open without issues. > The only way I've found to get rid of the issue is to restart the IDE. It did > happen a few times after that too, it wasn't clear which action has triggered > the issue. > !image-2020-07-23-14-53-04-101.png! > See the attachment for the IDE log, this error can be seen repeated there > multiple times. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists