Skip to content
Snippets Groups Projects
Commit 76b16f29 authored by Johannes Mey's avatar Johannes Mey
Browse files

fix printing of null-valued (i.e., optional or empty list) relations

parent 8a6ad345
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,8 @@ aspect Debugging { ...@@ -14,7 +14,8 @@ aspect Debugging {
} else { } else {
name += ":= "; name += ":= ";
} }
result += "|--" + name + method.invoke(this).toString().split("\\r?\\n")[0]; Object value = method.invoke(this);
result += "|--" + name + (value == null ? "<null>" : value.toString().split("\\r?\\n")[0]);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
e.printStackTrace(); e.printStackTrace();
} catch (java.lang.reflect.InvocationTargetException e) { } catch (java.lang.reflect.InvocationTargetException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment