Fixed: Hilighter nullpointer

This commit is contained in:
Jindra Petřík
2025-07-18 18:00:08 +02:00
parent b471b48ba7
commit 311b2376bf
3 changed files with 4 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ All notable changes to this project will be documented in this file.
- [#2486] AS1/2 Switch after function, problem with labels
- [#2486] AS ifs with direct breaks (in obfuscated code)
- [#2486] AS3 skipping label instruction
- Highlighter nullpointer
### Changed
- Icon of "Deobfuscation options" menu from pile of pills to medkit

Binary file not shown.

View File

@@ -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++) {