- Context cx;
- String what;
- if (m == null) {
- cx = Context.getContextForThread(MessageQueue.singleton);
- what = "trap";
- } else if (m instanceof ThreadMessage) {
- ThreadMessage tm = (ThreadMessage)m;
- cx = Context.getContextForThread(tm);
+ String what, where;
+ if (m != null && m instanceof ThreadMessage) {
+ where = org.xwt.js.Context.getSourceNameAndLineForThread((ThreadMessage)m);