You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by vl...@apache.org on 2019/06/08 18:42:16 UTC

[jmeter] 12/47: Avoid possible ArrayOutOfBounds Exception

This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a commit to annotated tag v2_3
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit 03cb3529e595c91ceeb59a5b0056133e673d18ef
Author: Sebastian Bazley <se...@apache.org>
AuthorDate: Wed Sep 19 11:11:06 2007 +0000

    Avoid possible ArrayOutOfBounds Exception
    
    git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2@577244 13f79535-47bb-0310-9956-ffa450edef68
    
    Former-commit-id: 3d6f98aca9723319138350e47885958a69341563
---
 src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java b/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java
index aa570b6..f6460c5 100644
--- a/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java
+++ b/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java
@@ -592,7 +592,7 @@ public class GenericTestBeanCustomizer extends JPanel implements SharedCustomize
 				if (propertyEditor instanceof WrapperEditor){
 					WrapperEditor we = (WrapperEditor) propertyEditor;
 					String tags[]=we.getTags();
-					if (tags != null) {
+					if (tags != null && tags.length > 0) {
 						we.setAsText(tags[0]);
 					} else {
 						we.setValue("");