pedro-w commented on issue #7057: URL: https://github.com/apache/netbeans/issues/7057#issuecomment-1938531071
Possible reason (exception thrown at line 755) https://github.com/apache/netbeans/blob/3e15eaef7fb64b6f094918094d50ff5bc8195b1b/ide/projectuiapi/src/org/netbeans/spi/project/ui/support/ProjectCustomizer.java#L750-L759 A comment in the caller says: > Create a new combo box model of all available Charsets > whose initial selection is a Charset with the provided name. > If the provided name is null or not a known character set, > a dummy Charset instance will be used for the selection. However I believe that if the `contains()` method of a HashSet (which is what Charset.aliases() is) is called with `null` it will give the NPE which I saw in the exception report. Hence I think the above function needs to special-case `null` to select "a dummy charset" (or, why not the default charset, I'm not sure what a dummy charset means) -- 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
