mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix NPE
This commit is contained in:
parent
3b1dae4412
commit
a414a7979c
|
@ -42,6 +42,9 @@ public class ClassPatch implements ClassHolderTransformer {
|
|||
}
|
||||
|
||||
private void patchProgram(Program program) {
|
||||
if (program == null) {
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < program.basicBlockCount(); ++i) {
|
||||
BasicBlock block = program.basicBlockAt(i);
|
||||
for (Instruction instruction : block) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user