mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 05:10:52 +00:00
Fixed: Hilighter nullpointer
This commit is contained in:
@@ -52,6 +52,9 @@ public class Markers {
|
||||
*/
|
||||
public static void removeMarkers(JTextComponent component, SimpleMarker marker) {
|
||||
Highlighter hilite = component.getHighlighter();
|
||||
if (hilite == null) {
|
||||
return;
|
||||
}
|
||||
Highlighter.Highlight[] hilites = hilite.getHighlights();
|
||||
|
||||
for (int i = 0; i < hilites.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user