Fix Tracer Warning
Dieser Commit ist enthalten in:
Ursprung
9dd02f6c52
Commit
585c4e6960
@ -40,6 +40,7 @@ public class TraceListener implements Listener {
|
|||||||
TNTTrace trace;
|
TNTTrace trace;
|
||||||
if (!tntMap.containsKey(tnt)) {
|
if (!tntMap.containsKey(tnt)) {
|
||||||
trace = TraceManager.createTrace();
|
trace = TraceManager.createTrace();
|
||||||
|
if (trace == null) return;
|
||||||
tntMap.put(tnt, trace);
|
tntMap.put(tnt, trace);
|
||||||
} else {
|
} else {
|
||||||
trace = tntMap.get(tnt);
|
trace = tntMap.get(tnt);
|
||||||
|
@ -40,6 +40,7 @@ public class TraceManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static TNTTrace createTrace() {
|
public static TNTTrace createTrace() {
|
||||||
|
if (!frameMap.containsKey(currentFrame)) return null;
|
||||||
TNTTrace trace = new TNTTrace(currentFrame);
|
TNTTrace trace = new TNTTrace(currentFrame);
|
||||||
int id = generateID();
|
int id = generateID();
|
||||||
traceMap.put(id, trace);
|
traceMap.put(id, trace);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren