Commit d0d930e3 authored by Markus Bauer's avatar Markus Bauer
Browse files

Fixing a NullPointerException

parent 2650b4ea
......@@ -122,7 +122,7 @@ public aspect DebuggerListeners {
pointcut renameAgents2(CodeLineList cll) : withincode(* tree.ASTStartExpression.generateCode(..)) &&
call(CodeLineList CodeLineList.concatLast(CodeLineList)) && target(cll);
CodeLineList around(CodeLineList cll) : renameAgents2(cll){
if (cll.getCodeLine(0) != null && cll.getCodeLine(0).getCode().equals("new PseuCoThread(\"")){
if (lastCallCode != null && cll.getCodeLine(0) != null && cll.getCodeLine(0).getCode().equals("new PseuCoThread(\"")){
cll = cll.concatLast(new CodeLineList(new CodeLine(" [ \\\""+escapeCode(lastCallCode)+"\\\" ]", -1)));
lastCallCode = null;
return cll;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment