Skip to content

Commit

Permalink
use advise's classloader to avoid NPE when the class is not loaded by…
Browse files Browse the repository at this point in the history
… current thread (#1586)
  • Loading branch information
superheizai authored Nov 24, 2020
1 parent bf3e0f6 commit e9e83c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ private void processWatch(CommandProcess process) {
}

Advice advice = tf.getAdvice();
Object value = ExpressFactory.threadLocalExpress(advice).get(watchExpress);

Object value = ExpressFactory.unpooledExpress(advice.getLoader()).bind(advice).get(watchExpress);
TimeTunnelModel timeTunnelModel = new TimeTunnelModel()
.setWatchValue(value)
.setExpand(expand)
Expand Down

0 comments on commit e9e83c9

Please sign in to comment.