Ignore:
Timestamp:
06/28/13 15:47:38 (11 years ago)
Author:
pharms
Message:
  • bugfix to prevent null pointer in the case an onchange event does not have a value
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogTextInputPseudomizer.java

    r1242 r1246  
    241241                String value = parameters.get("selectedValue"); 
    242242                 
    243                 if (!value.endsWith("==")) { 
     243                if ((value != null) && !value.endsWith("==")) { 
    244244                    try { 
    245245                        MessageDigest md = MessageDigest.getInstance("SHA-512"); 
     
    253253                        throw new IllegalStateException("Java VM does not support this code"); 
    254254                    } 
     255                     
     256                    parameters.put("selectedValue", value); 
    255257                } 
    256                  
    257                 parameters.put("selectedValue", value); 
    258258            } 
    259259        } 
Note: See TracChangeset for help on using the changeset viewer.