Buggy code:
} log . trace ( ( ( ( ( "updating<seq2seq4repair_space>metric<seq2seq4repair_space>display<seq2seq4repair_space>date<seq2seq4repair_space>range<seq2seq4repair_space>[" + begin ) + ":" ) + end ) + "]" ) ) ; user . setPreference ( PREF_METRIC_RANGE , range ) ; user . setPreference ( PREF_METRIC_RANGE_LASTN , null ) ; user . setPreference ( PREF_METRIC_RANGE_UNIT , null ) ; user . setPreference ( PREF_METRIC_RANGE_RO , Boolean . TRUE ) ; } else if ( controlForm . isLastnSelected ( ) ) { Integer lastN = controlForm . getRn ( ) ; if ( ( ( lastN == null ) || ( lastN < 1 ) ) || ( lastN > 9999 ) ) { addCustomActionErrorMessages ( getText ( "resource.common.monitor.error.LastNInteger" ) ) ; return INPUT ; } Integer unit = controlForm . getRu ( ) ; log . trace ( ( ( ( ( "updating<seq2seq4repair_space>metric<seq2seq4repair_space>display<seq2seq4repair_space>..<seq2seq4repair_space>lastN<seq2seq4repair_space>[" + lastN ) + "]<seq2seq4repair_space>..<seq2seq4repair_space>unit<seq2seq4repair_space>[" ) + unit ) + "]" ) ) ; user . setPreference ( PREF_METRIC_RANGE_LASTN , lastN ) ; user . setPreference ( PREF_METRIC_RANGE_UNIT , unit ) ; user . setPreference ( PREF_METRIC_RANGE , null ) ; user . setPreference ( PREF_METRIC_RANGE_RO , Boolean . FALSE ) ; if ( ( controlForm . getRangeBtnClicked ( ) ) && ( log . isDebugEnabled ( ) ) ) { log . debug ( ( ( ( ( "updating<seq2seq4repair_space>metric<seq2seq4repair_space>display<seq2seq4repair_space>..<seq2seq4repair_space>lastN<seq2seq4repair_space>[" + lastN ) + "]<seq2seq4repair_space>..<seq2seq4repair_space>unit<seq2seq4repair_space>[" ) + unit ) + "]" ) ) ; LogFactory . getLog ( "user.preferences" ) . debug ( ( ( ( ( ( ( "Invoking<seq2seq4repair_space>setUserPrefs<seq2seq4repair_space>in<seq2seq4repair_space>MetricsControlAction<seq2seq4repair_space>" + "<seq2seq4repair_space>for<seq2seq4repair_space>" ) + ( user . getId ( ) ) ) + "<seq2seq4repair_space>at<seq2seq4repair_space>" ) + ( System . currentTimeMillis ( ) ) ) + "<seq2seq4repair_space>user.prefs<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( user . getPreferences ( ) ) ) ) ; } } if ( ( controlForm . isAdvancedClicked ( ) ) || ( controlForm . getAdvancedBtnClicked ( ) ) ) { if ( controlForm . isDateRangeSelected ( ) ) { if ( beginTime == 0 ) { if ( ( ( controlForm . getStartHour ( ) ) == null ) || ( controlForm . getStartHour ( ) . equals ( "" ) ) ) { addCustomActionErrorMessages ( getText ( "errors.invalid.StartHour" , new String [ ] { "Date<seq2seq4repair_space>Range" } ) ) ; return INPUT ; } else { try { Integer . parseInt ( controlForm . getStartHour ( ) ) ; } catch ( NumberFormatException e ) { addCustomActionErrorMessages ( getText ( "errors.integer" , new String [ ] { "Start<seq2seq4repair_space>hour" } ) ) ; return INPUT ; } } if ( ( ( controlForm . getStartMin ( ) ) == null ) || ( controlForm . getStartMin ( ) . equals ( "" ) ) ) { addCustomActionErrorMessages ( getText ( "errors.invalid.StartMinute" , new String [ ] { "Date<seq2seq4repair_space>Range" } ) ) ; return INPUT ; } else { try { Integer . parseInt ( controlForm . getStartMin ( ) ) ; } catch ( NumberFormatException e ) { addCustomActionErrorMessages ( getText ( "errors.integer" , new String [ ] { "Start<seq2seq4repair_space>minute" } ) ) ; return INPUT ; } } } if ( endTime == 0 ) { if ( ( ( controlForm . getEndHour ( ) ) == null ) || ( controlForm . getEndHour ( ) . equals ( "" ) ) ) { addCustomActionErrorMessages ( getText ( "errors.invalid.EndHour" , new String [ ] { "Date<seq2seq4repair_space>Range" } ) ) ; return INPUT ; } else { try { Integer . parseInt ( controlForm . getEndHour ( ) ) ; } catch ( NumberFormatException e ) { addCustomActionErrorMessages ( getText ( "errors.integer" , new String [ ] { "End<seq2seq4repair_space>hour" } ) ) ; return INPUT ; } } if ( ( ( controlForm . getEndMin ( ) ) == null ) || ( controlForm . getEndMin ( ) . equals ( "" ) ) ) { <START_BUG> addCustomActionErrorMessages ( getText ( "errors.invalid.EndMinute" , new String [ ] { "Date<seq2seq4repair_space>Range" } ) ) ; <END_BUG> return INPUT ; } else { try { Integer . parseInt ( controlForm . getEndMin ( ) ) ; } catch ( NumberFormatException e ) { addCustomActionErrorMessages ( getText ( "errors.integer" , new String [ ] { "End<seq2seq4repair_space>minute" } ) ) ; return INPUT ; } } } if ( endTime < beginTime ) { addCustomActionErrorMessages ( getText ( "resource.common.monitor.error.FromEarlierThanTo" ) ) ; return INPUT ; } List < Long > range = new ArrayList < Long > ( ) ; range . add ( new Long ( beginTime ) ) ; range . add ( new Long ( endTime ) ) ; log . trace ( ( ( ( ( "updating<seq2seq4repair_space>metric<seq2seq4repair_space>display<seq2seq4repair_space>date<seq2seq4repair_space>range<seq2seq4repair_space>[" + begin ) + ":" ) + end ) + "]" ) ) ; user . setPreference ( PREF_METRIC_RANGE , range ) ; user . setPreference ( PREF_METRIC_RANGE_LASTN , null ) ; user . setPreference ( PREF_METRIC_RANGE_UNIT , null ) ; user . setPreference ( PREF_METRIC_RANGE_RO , Boolean . TRUE ) ; } else if ( ! ( controlForm . isLastnSelected ( ) ) ) { throw new ServletException ( ( ( "invalid<seq2seq4repair_space>date<seq2seq4repair_space>range<seq2seq4repair_space>action<seq2seq4repair_space>[" + ( controlForm . getA ( ) ) ) + "]<seq2seq4repair_space>selected" ) ) ; } log . trace ( ( ( ( ( ( ( "Invoking<seq2seq4repair_space>setUserPrefs" + ( "<seq2seq4repair_space>in<seq2seq4repair_space>MetricDisplayRangeAction<seq2seq4repair_space>" + "<seq2seq4repair_space>for<seq2seq4repair_space>" ) ) + ( user . getId ( ) ) ) + "<seq2seq4repair_space>at<seq2seq4repair_space>" ) + ( System . currentTimeMillis ( ) ) ) + "<seq2seq4repair_space>user.prefs<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( user . getPreferences ( ) ) ) ) ; } else { if ( controlForm . isSimpleClicked ( ) ) { user . setPreference ( PREF_METRIC_RANGE_RO , Boolean . FALSE ) ; if ( log . isDebugEnabled ( ) ) { LogFactory . getLog ( "user.preferences" ) . debug ( ( ( ( ( ( ( "Invoking<seq2seq4repair_space>setUserPrefs<seq2seq4repair_space>in<seq2seq4repair_space>MetricsControlAction<seq2seq4repair_space>" + "<seq2seq4repair_space>for<seq2seq4repair_space>" ) + ( user . getId ( ) ) ) + "<seq2seq4repair_space>at<seq2seq4repair_space>" ) + ( System . currentTimeMillis ( ) ) ) + "<seq2seq4repair_space>user.prefs<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( user . getPreferences ( ) ) ) ) ;

Fix:
addCustomActionErrorMessages ( getText ( "errors.invalid.EndMin" , new String [ ] { "Date<seq2seq4repair_space>Range" } ) ) ;