Skip to content

Commit

Permalink
FIX - Ashok - Fixed even if the formsection name and field name are e…
Browse files Browse the repository at this point in the history
…mpty
  • Loading branch information
Ashok committed Feb 15, 2013
1 parent dae9326 commit bdd31a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ public List<String> getLocalizedOptionStrings(){
}

private String getLocalized(Map<String, String> valueMap) {
if(valueMap != null)
return valueMap.get(Locale.getDefault().getLanguage()) != null ? valueMap.get(Locale.getDefault().getLanguage()) : valueMap.get(RapidFtrApplication.getDefaultLocale());
if(valueMap != null) {
String value = valueMap.get(Locale.getDefault().getLanguage());
return (value == null || "".equals(value)) ? valueMap.get(RapidFtrApplication.getDefaultLocale()) : value;
}
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ public String getLocalizedHelpText() {
}

private String getLocalized(Map<String, String> valueMap) {
if(valueMap != null)
return valueMap.get(Locale.getDefault().getLanguage()) != null ? valueMap.get(Locale.getDefault().getLanguage()) : valueMap.get(RapidFtrApplication.getDefaultLocale());
if(valueMap != null){
String value = valueMap.get(Locale.getDefault().getLanguage());
return (value == null || "".equals(value)) ? valueMap.get(RapidFtrApplication.getDefaultLocale()) : value ;
}
return null;
}

Expand Down

0 comments on commit bdd31a1

Please sign in to comment.