Bug 64285 - NPE when Clearing after switching to a different LAF
Summary: NPE when Clearing after switching to a different LAF
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: Nightly (Please specify date)
Hardware: All All
: P2 regression (vote)
Target Milestone: JMETER_5.3.0
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2020-03-29 17:54 UTC by Philippe Mouawad
Modified: 2020-03-29 19:08 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2020-03-29 17:54:16 UTC
I load GenTest_3.0.jmx in bin/testfiles
I change LAFs at runtime without restarting
I clear using Run > Clear ALL, I get this stacktrace:

020-03-29 19:49:34,561 ERROR o.a.j.g.GuiPackage: Problem retrieving gui
java.lang.NullPointerException: null
	at org.apache.jorphan.gui.DynamicStyle.updateComponentTreeUI(DynamicStyle.java:164) ~[jorphan.jar:5.3-SNAPSHOT]
	at org.apache.jorphan.gui.DynamicStyle.updateComponentTreeUI(DynamicStyle.java:155) ~[jorphan.jar:5.3-SNAPSHOT]
	at org.apache.jorphan.gui.JFactory.updateUi(JFactory.java:191) ~[jorphan.jar:5.3-SNAPSHOT]
	at org.apache.jmeter.gui.GuiPackage.updateUi(GuiPackage.java:441) ~[ApacheJMeter_core.jar:5.3-SNAPSHOT]
	at org.apache.jmeter.gui.GuiPackage.getGui(GuiPackage.java:269) ~[ApacheJMeter_core.jar:5.3-SNAPSHOT]
	at org.apache.jmeter.gui.GuiPackage.getGui(GuiPackage.java:237) ~[ApacheJMeter_core.jar:5.3-SNAPSHOT]
	at org.apache.jmeter.gui.action.Clear.doAction(Clear.java:67) ~[ApacheJMeter_core.jar:5.3-SNAPSHOT]
	at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.3-SNAPSHOT]
	at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.3-SNAPSHOT]
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) [?:1.8.0_201]
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) [?:1.8.0_201]
	at java.awt.EventQueue.access$500(EventQueue.java:97) [?:1.8.0_201]
	at java.awt.EventQueue$3.run(EventQueue.java:709) [?:1.8.0_201]
	at java.awt.EventQueue$3.run(EventQueue.java:703) [?:1.8.0_201]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_201]
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [?:1.8.0_201]
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) [?:1.8.0_201]
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [?:1.8.0_201]
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_201]
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_201]
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_201]
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_201]
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_201]
Comment 1 Vladimir Sitnikov 2020-03-29 19:03:46 UTC
Thanks, fixed in d556c65ceb09cf4846670d710d0060d075bc543f
Comment 2 The ASF infrastructure team 2022-09-24 20:38:19 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5277