jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1297981 - in /jmeter/trunk: src/components/org/apache/jmeter/assertions/gui/XPathPanel.java xdocs/changes.xml
Date Wed, 07 Mar 2012 14:49:11 GMT
Author: sebb
Date: Wed Mar  7 14:49:11 2012
New Revision: 1297981

URL: http://svn.apache.org/viewvc?rev=1297981&view=rev
Log:
Bug 52848 - NullPointer in "XPath Assertion"

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/XPathPanel.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/XPathPanel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/XPathPanel.java?rev=1297981&r1=1297980&r2=1297981&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/XPathPanel.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/assertions/gui/XPathPanel.java Wed Mar 
7 14:49:11 2012
@@ -185,9 +185,9 @@ public class XPathPanel extends JPanel {
         try {
             if (testDoc == null) {
                 Document doc = XPathUtil.makeDocumentBuilder(false, false, false, false).newDocument();
+                testDoc = doc;
                 Element el = testDoc.createElement("root"); //$NON-NLS-1$
                 doc.appendChild(el);
-                testDoc = doc;
 
             }
             XPathUtil.validateXPath(testDoc, xpathString);

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1297981&r1=1297980&r2=1297981&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Wed Mar  7 14:49:11 2012
@@ -91,6 +91,7 @@ When doing replacement of User Defined V
 
 <h3>Assertions</h3>
 <ul>
+<li>Bug 52848 - NullPointer in "XPath Assertion"</li>
 </ul>
 
 <h3>Functions</h3>



Mime
View raw message