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

pull/1604/head
superheizai 4 years ago committed by GitHub
parent bf3e0f603c
commit e9e83c9aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save