mbien commented on code in PR #4233:
URL: https://github.com/apache/netbeans/pull/4233#discussion_r912315174


##########
webcommon/web.inspect/src/org/netbeans/modules/web/inspect/ui/CssStylesPanelProviderImpl.java:
##########
@@ -139,7 +139,6 @@ private void initNoStylesLabel() {
         noStylesLabel.setHorizontalAlignment(SwingConstants.CENTER);
         noStylesLabel.setVerticalAlignment(SwingConstants.CENTER);
         noStylesLabel.setEnabled(false);
-        noStylesLabel.setBackground(new 
BeanTreeView().getViewport().getView().getBackground());

Review Comment:
   thanks @matthiasblaesing, I would have never found that panel.
   
   I pushed an alternative proposal for the NPE fixes. I tested it on several 
LAFs and checked that:
   ```
   new 
BeanTreeView().getViewport().getView().getBackground().equals(UIManager.getColor("Tree.background"))
   ```
   was true.
   
   And instead of testing on 18, I leave it at 19-ea but disable the xserver 
there instead, since I believe we get more value when testing on 19ea where we 
can detect issues early.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to