mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
use advise's classloader to avoid NPE when the class is not loaded by current thread (#1586)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user