mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 06:40:47 +00:00
NullPointer exception fixed when debug mode is enabled
This commit is contained in:
@@ -274,7 +274,7 @@ public class LineMarkedEditorPane extends UndoFixedEditorPane implements LinkHan
|
||||
public void setText(String t) {
|
||||
lastLine = -1;
|
||||
error = false;
|
||||
if (Configuration.debugMode.get() && t.length() > truncateLimit) {
|
||||
if (Configuration.debugMode.get() && t != null && t.length() > truncateLimit) {
|
||||
t = t.substring(0, truncateLimit) + "\r\n" + AppStrings.translate("editorTruncateWarning").replace("%chars%", Integer.toString(truncateLimit));
|
||||
}
|
||||
super.setText(t);
|
||||
|
||||
Reference in New Issue
Block a user