JEditorPane setText "conv" is null jbr_jcef 21, IntelliJ IDEA 2024.2.2
Development environment: jbr_jcef 21, IntelliJ IDEA 2024.2.2 (Ultimate Edition) error
Development environment: jbr_jcef 17, IntelliJ IDEA 2023.1-2024.1 (Ultimate Edition) Normal
Caused by: java.lang.NullPointerException: Cannot invoke "javax.swing.text.html.CSS$CssValue.parseCssValue(String)" because "conv" is null
2024-10-12T16:39:08.521+0800 [ERROR] [system.err] at java.desktop/javax.swing.text.html.HTMLDocument$HTMLReader.addCSSRules(HTMLDocument.java:4123)2024-10-12T16:39:08.521+0800 [ERROR] [system.err] at java.desktop/javax.swing.text.html.HTMLDocument$HTMLReader$HeadAction.end(HTMLDocument.java:3218)2024-10-12T16:39:08.521+0800 [ERROR] [system.err] at java.desktop/javax.swing.text.html.HTMLDocument$HTMLReader.handleEndTag(HTMLDocument.java:2906)2024-10-12T16:39:08.521+0800 [ERROR] [system.err] at java.desktop/javax.swing.text.html.parser.DocumentParser.handleEndTag(DocumentParser.java:253)2024-10-12T16:39:08.521+0800 [ERROR] [system.err] at java.desktop/javax.swing.text.html.parser.Parser.parse(Parser.java:2398)2024-10-12T16:39:08.521+0800 [ERROR] [system.err] at java.desktop/javax.swing.text.html.parser.DocumentParser.parse(DocumentParser.java:135)2024-10-12T16:39:08.521+0800 [ERROR] [system.err] at java.desktop/javax.swing.text.html.parser.ParserDelegator.parse(ParserDelegator.java:121)2024-10-12T16:39:08.521+0800 [ERROR] [system.err] at java.desktop/javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:319)2024-10-12T16:39:08.521+0800 [ERROR] [system.err] at java.desktop/javax.swing.JEditorPane.setText(JEditorPane.java:1473)
Please sign in to leave a comment.
Hi,
I'm sorry but the error is unclear. Anyway, I suggest creating an issue on https://youtrack.jetbrains.com/issues/JBR.
Please provide more information: a minimal project to reproduce the error, what are the exact IDEs you tested it on, etc.
Okay, thank you. It should be IDEA2024.2+, which means upgrading Gradle to 2+. Currently, it is still 1.17.2
Hello,Karol Lewandowski,Sorry, it is not the reason for upgrading. Gradle still has this problem when upgrading to 2.1.0. In swing rendering, this error will appear when calling the setText method of JTextPane, which cannot be solved