lua panel NPE fix
This commit is contained in:
parent
cb9ebe0955
commit
46fca43996
|
@ -6,7 +6,7 @@ import java.net.URL;
|
|||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
public class rusEFIVersion {
|
||||
public static final int CONSOLE_VERSION = 20210911;
|
||||
public static final int CONSOLE_VERSION = 20210918;
|
||||
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||
|
||||
public static long classBuildTimeMillis() {
|
||||
|
|
|
@ -97,6 +97,10 @@ public class LuaScriptPanel {
|
|||
}
|
||||
|
||||
ConfigurationImage image = bp.getControllerConfiguration();
|
||||
if (image == null) {
|
||||
scriptText.setText("No configuration image");
|
||||
return;
|
||||
}
|
||||
ByteBuffer luaScriptBuffer = image.getByteBuffer(Fields.luaScript_offset, Fields.LUA_SCRIPT_SIZE);
|
||||
|
||||
byte[] scriptArr = new byte[Fields.LUA_SCRIPT_SIZE];
|
||||
|
|
Loading…
Reference in New Issue