[debugger] Fixed NPE in Coroutines View

IDEA-374561

GitOrigin-RevId: 37474b08ca8a3c0751b36fa883756c1dbf8b94dc
This commit is contained in:
Maria Sokolova
2025-06-24 11:03:02 +00:00
committed by intellij-monorepo-bot
parent dfe67fef59
commit 9206526931
18 changed files with 458 additions and 40 deletions
@@ -177,7 +177,8 @@ public final class CoroutinesDebugHelper {
for (int i = 0; i < coroutineInfos.length; i++) {
lastObservedStackTraces[i] = lastObservedStackTrace(coroutineInfos[i]);
}
dump[3] = lastObservedStackTraces;
dump = Arrays.copyOf(dump, dump.length + 1);
dump[4] = lastObservedStackTraces;
return dump;
} catch (Throwable e) {
return null;