JaroslavTulach opened a new pull request #2393:
URL: https://github.com/apache/netbeans/pull/2393


   I've got a `NullPointerException` while working on [java.lsp.server 
debugging](https://github.com/JaroslavTulach/netbeans/tree/java-lsp-server-debugging-attempt2):
   ```
   java.lang.NullPointerException
           at 
org.openide.io.BridgingIOProvider$BridgingIOColorPrint.print(BridgingIOProvider.java:299)
           at org.openide.windows.IOColorPrint.print(IOColorPrint.java:68)
           at 
org.netbeans.modules.gradle.api.execute.RunUtils.executeGradleImpl(RunUtils.java:206)
           at 
org.netbeans.modules.gradle.api.execute.RunUtils.executeGradle(RunUtils.java:123)
           at 
org.netbeans.modules.gradle.ActionProviderImpl.invokeProjectAction(ActionProviderImpl.java:266)
           at 
org.netbeans.modules.gradle.ActionProviderImpl.invokeAction(ActionProviderImpl.java:137)
           at 
org.netbeans.modules.java.lsp.server.debugging.launch.NbLaunchDelegate.lambda$nbLaunch$0(NbLaunchDelegate.java:115)
   ```
   The problem is that `BridgingIOProvider` isn't ready for `null` color. This 
PR fixes it and adds some unit tests that, for example discover unexpected 
usage of `new StringWriter()` in bridging `OutputWriter` constructor!?
   
   In addition to that I've added a check into Gradle code to verify that both 
`IOColorPrint` and `IOColors` are supported.


----------------------------------------------------------------
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.

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