use advise's classloader to avoid NPE when the class is not loaded by current thread (#1586)

This commit is contained in:
superheizai
2020-11-24 17:18:32 +08:00
committed by GitHub
parent bf3e0f603c
commit e9e83c9aa1
@@ -354,7 +354,8 @@ public class TimeTunnelCommand extends EnhancerCommand {
}
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)