Buggy code:
protected static boolean ss_ui = Utils . getprefb ( "ss_ui" , false ) ; public static boolean hptr = Utils . getprefb ( "hptr" , false ) ; public static boolean menugrid_resets = Utils . getprefb ( "menugrid_resets" , false ) ; public static boolean showgobpath = Utils . getprefb ( "showgobpath" , true ) ; public static boolean fieldfix = Utils . getprefb ( "fieldfix" , true ) ; public static int fieldproducescale = ( ( int ) ( Utils . getpreff ( "fieldproducescale" , 1.0F ) ) ) ; public static boolean alwaysshowpurity = Utils . getprefb ( "alwaysshowpurity" , false ) ; public static boolean alphasort = Utils . getprefb ( "alphasort" , false ) ; public static boolean reversesort = Utils . getprefb ( "reversesort" , false ) ; public static boolean laptopcontrols = Utils . getprefb ( "laptopcontrols" , false ) ; public static boolean raidermodetrees = Utils . getprefb ( "raidermodetrees" , false ) ; public static boolean raidermodebraziers = Utils . getprefb ( "raidermodebraziers" , false ) ; public static boolean altprosp = Utils . getprefb ( "altprosp" , false ) ; public static boolean pclaimv = Utils . getprefb ( "pclaimv" , false ) ; public static boolean tclaimv = Utils . getprefb ( "tclaimv" , false ) ; public static boolean wclaimv = Utils . getprefb ( "wclaimv" , true ) ; public static boolean hpointv = Utils . getprefb ( "hpointv" , false ) ; public static boolean alwaystrack = Utils . getprefb ( "alwaystrack" , false ) ; public static boolean slowmin = Utils . getprefb ( "slowmin" , false ) ; public static boolean watchguard = Utils . getprefb ( "watchguard" , false ) ; public static boolean alwaysbright = Utils . getprefb ( "alwaysbright" , false ) ; public static boolean fast_menu = Utils . getprefb ( "fast_flowers" , false ) ; public static boolean mute_violin = Utils . getprefb ( "mute_violin" , false ) ; public static boolean chatlogs = Utils . getprefb ( "chatlogs" , true ) ; public static final int hotkeynr = 6 ; public static final String [ ] defhotkeys = new String [ ] { "A" , "Q" , "" , "" , "" , "" } ; public static final String [ ] defcommands = new String [ ] { "act<seq2seq4repair_space>lo<seq2seq4repair_space>cs" , "act<seq2seq4repair_space>lo" , "" , "" , "" , "" } ; public static String [ ] hnames = new String [ Config . hotkeynr ] ; public static String [ ] hcommands = new String [ Config . hotkeynr ] ; public static boolean localmm_ridges = Utils . getprefb ( "localmm_ridges" , false ) ; public static boolean remove_animations = Utils . getprefb ( "remove_animations" , false ) ; public static boolean hide_minimap = Utils . getprefb ( "hide_minimap" , false ) ; public static boolean hide_tempers = Utils . getprefb ( "hide_tempers" , false ) ; public static boolean toolbelt_scrolling = Utils . getprefb ( "toolbelt_scrolling" , false ) ; public static boolean show_contents_icons = Utils . getprefb ( "show_contents_icons" , false ) ; public static Map < String , String > contents_icons ; private static void loadBuildVersion ( ) { InputStream in = Config . class . getResourceAsStream ( "//buildinfo" ) ; try { try { if ( in != null ) { Properties info = new Properties ( ) ; info . load ( in ) ; for ( Map . Entry < Object , Object > e : info . entrySet ( ) ) Config . buildinfo . put ( ( ( String ) ( e . getKey ( ) ) ) , e . getValue ( ) ) ; } } finally { if ( in != null ) { in . close ( ) ; } } } catch ( IOException e ) { throw new Error ( e ) ; } Config . version = ( ( String ) ( Config . buildinfo . get ( "git-rev" ) ) ) ; Config . loadOptions ( ) ; Config . window_props = Config . loadProps ( "windows.conf" ) ; Wiki . init ( Config . getFile ( "cache" ) , 3 ) ; for ( int i = 0 ; i < ( Config . hotkeynr ) ; i ++ ) { String hname = String . format ( "hotkey%d" , ( i + 1 ) ) ; String hcommand = String . format ( "command%d" , ( i + 1 ) ) ; <START_BUG> Config . hnames [ i ] = Utils . getpref ( hname , Config . defhotkeys [ i ] ) ; <END_BUG> Config . hcommands [ i ] = Utils . getpref ( hcommand , Config . defcommands [ i ] ) ; } } public static void setCharName ( String name ) { } private static void loadOptions ( ) { } public static void saveOptions ( ) { } public static File getFile ( String name ) { } public static File getFile ( ) { } private static int getint ( String name , int def ) { } private static URL forceurl ( String val ) { } private static URL geturl ( String name , String def ) { } public static synchronized void setWindowOpt ( String key , String value ) { } private static Properties loadProps ( String name ) { } private static void saveProps ( Properties props , String name , String comments ) { } public static synchronized void setWindowOpt ( String key , Boolean value ) { } public static void saveWindowOpt ( ) { } private static void usage ( PrintStream out ) { } public static void cmdline ( String [ ] args ) { } public static void setglpref ( GLSettings pref ) { } public static void setBrighten ( float val ) { } public static void setFieldproducescale ( int val ) { } }

Fix:
Config . hnames [ i ] = Utils . getpref ( hname , Config . defhotkeys [ i ] ) . substring ( 0 , 1 ) ;