jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1784381 - /jmeter/trunk/src/core/org/apache/jmeter/gui/NamePanel.java
Date Sat, 25 Feb 2017 14:23:01 GMT
Author: fschumacher
Date: Sat Feb 25 14:23:01 2017
New Revision: 1784381

URL: http://svn.apache.org/viewvc?rev=1784381&view=rev
Log:
Revert r1783482. It seems, that nameField is not initialized, when the constructor runs. This
leads to problems with gtk+ and nimbus laf.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/NamePanel.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/NamePanel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/NamePanel.java?rev=1784381&r1=1784380&r2=1784381&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/NamePanel.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/NamePanel.java Sat Feb 25 14:23:01 2017
@@ -72,7 +72,10 @@ public class NamePanel extends JPanel im
      */
     @Override
     public String getName() {
-        return nameField.getText();
+        if (nameField != null) {
+            return nameField.getText();
+        }
+        return ""; // $NON-NLS-1$
     }
 
     /** {@inheritDoc} */



Mime
View raw message