Bug 58795 - NPE may occur in GuiPackage#getTestElementCheckSum with some 3rd party plugins
Summary: NPE may occur in GuiPackage#getTestElementCheckSum with some 3rd party plugins
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.13
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-03 20:52 UTC by Philippe Mouawad
Modified: 2016-01-03 20:55 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 2016-01-03 20:52:02 UTC
Seen at:

- http://stackoverflow.com/questions/34574084/class-name-in-junit-request-sampler-disappearing-in-jmeter-2-13

The user is using a 3rd party plugin in developer snapshot but this NPE could be avoided and more information given to users.


Following stacktrace:
2016/01/03 23:57:51 ERROR - jmeter.gui.GuiPackage: Problem retrieving gui java.lang.NullPointerException
    at org.apache.jmeter.gui.GuiPackage.getTestElementCheckSum(GuiPackage.java:853)
    at org.apache.jmeter.gui.GuiPackage.updateCurrentNode(GuiPackage.java:435)
    at org.apache.jmeter.gui.GuiPackage.getCurrentGui(GuiPackage.java:272)
    at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:45)
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
    at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
    at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Comment 1 Philippe Mouawad 2016-01-03 20:55:07 UTC
Author: pmouawad
Date: Sun Jan  3 20:54:29 2016
New Revision: 1722754

URL: http://svn.apache.org/viewvc?rev=1722754&view=rev
Log:
Bug 58795 - NPE may occur in GuiPackage#getTestElementCheckSum with some 3rd party plugins
Fix NPE
Avoid computing checksum when undoHistory is disabled
Bugzilla Id: 58795

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/GuiPackage.java
    jmeter/trunk/xdocs/changes.xml