Commit cbf9869
* fixed: debugger crash Cannot read the array length because "interfaces" is null (#816)
```
java.lang.NullPointerException: Cannot read the array length because "interfaces" is null
at org.robovm.debugger.jdwp.handlers.referencetype.JdwpRefTypeInterfacesHandler.handle(JdwpRefTypeInterfacesHandler.java:49)
at org.robovm.debugger.jdwp.JdwpDebugServer.doSocketWork(JdwpDebugServer.java:200)
at java.base/java.lang.Thread.run(Thread.java:1583)
at org.robovm.debugger.utils.DebuggerThread.run(DebuggerThread.java:42)
```
## Root case:
debugger queries interface information for classes that are marked as `ClassStatus.ERROR`.
> java8/util/DelegatingSpliterator$ConsumerDelegate has error 1 due java.util.function.Consumer
and
> Class was Warning: java.util.function.Consumer is a phantom class!
## the fix: initialize fields with empty arrays.
## other changes:
- using 10 threads for maven builds
- printing line numbers in stacktraces in debug output
Co-authored-by: Tomski <tomwojciechowski@asidik.com>1 parent 1536040 commit cbf9869
File tree
3 files changed
+6
-2
lines changed- compiler/vm/core/src
- plugins/debugger/src/main/java/org/robovm/debugger/state/classdata
3 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
0 commit comments