mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-27 18:38:14 -05:00
Update #42 - Fixed several WebRTC bugs and other issues
This commit is contained in:
@ -215,10 +215,12 @@ public class EagRuntime {
|
||||
}
|
||||
|
||||
public static void getStackTrace(Throwable t, Consumer<String> ret) {
|
||||
if(t == null) return;
|
||||
PlatformRuntime.getStackTrace(t, ret);
|
||||
}
|
||||
|
||||
public static String[] getStackTraceElements(Throwable t) {
|
||||
if(t == null) return new String[0];
|
||||
List<String> lst = new ArrayList<>();
|
||||
PlatformRuntime.getStackTrace(t, (s) -> {
|
||||
lst.add(s);
|
||||
@ -227,6 +229,9 @@ public class EagRuntime {
|
||||
}
|
||||
|
||||
public static String getStackTrace(Throwable t) {
|
||||
if(t == null) {
|
||||
return "[null]";
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
getStackTrace0(t, sb);
|
||||
Throwable c = t.getCause();
|
||||
|
Reference in New Issue
Block a user