From 28f5e1b27c4150847cc4c2654c55d2881574a81a Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 15 Aug 2011 02:49:39 +0200 Subject: Some PMD cleaning --- forms/qa/integration/forms/FormControlTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'forms') diff --git a/forms/qa/integration/forms/FormControlTest.java b/forms/qa/integration/forms/FormControlTest.java index 7fdf68dea796..6c455a8064f4 100644 --- a/forms/qa/integration/forms/FormControlTest.java +++ b/forms/qa/integration/forms/FormControlTest.java @@ -679,10 +679,12 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE { try { - if ( fieldName.equals( "f_time" ) ) + if ( ( "f_time" ).equals(fieldName) ) // http://bugs.mysql.com/bug.php?id=5681 return true; - + if (fieldName == null) { + return false; + } int currentValue = ((Integer)getControlModel( fieldName ).getPropertyValue( propertyName )).intValue(); if ( currentValue != requiredValue ) { -- cgit