Buggy code:
public class MenuGrid extends Widget { public static final Tex bg = Resource . loadtex ( "gfx//hud//invsq" ) ; public static final Coord bgsz = MenuGrid . bg . sz ( ) . add ( ( - 1 ) , ( - 1 ) ) ; private final Pagina CRAFT ; public final Pagina next = paginafor ( Resource . load ( "gfx//hud//sc-next" ) . loadwait ( ) ) ; public final Pagina bk = paginafor ( Resource . load ( "gfx//hud//sc-back" ) . loadwait ( ) ) ; public static final Foundry ttfnd = new RichText . Foundry ( TextAttribute . FAMILY , "SansSerif" , TextAttribute . SIZE , 10 ) ; private static Coord gsz = new Coord ( 4 , 4 ) ; public Pagina cur ; public Pagina pressed ; public Pagina dragging ; public Pagina [ ] [ ] layout = new Pagina [ MenuGrid . gsz . x ] [ MenuGrid . gsz . y ] ; private int curoff = 0 ; private int pagseq = 0 ; private boolean loading = true ; private Map < Character , Pagina > hotmap = new TreeMap < Character , Pagina > ( ) ; @ RName ( "scm" ) public static class $_ implements Factory { public Widget create ( Coord c , Widget parent , Object [ ] args ) { } } public class PaginaException extends RuntimeException { public Pagina pag ; public PaginaException ( Pagina p ) { } } public boolean cons ( Pagina p , Collection < Pagina > buf ) { } public MenuGrid ( Coord c , Widget parent ) { } public static Comparator < Pagina > sorter = new Comparator < Pagina > ( ) { public int compare ( Pagina a , Pagina b ) { } } ; private void updlayout ( ) { } public static BufferedImage getXPgain ( String name ) { try { Item itm = Wiki . get ( name ) ; if ( itm != null ) { Map < String , Integer > props = itm . attgive ; if ( props != null ) { int n = props . size ( ) ; String [ ] attrs = new String [ n ] ; int [ ] exp = new int [ n ] ; n = 0 ; for ( String attr : props . keySet ( ) ) { Integer val = props . get ( attr ) ; attrs [ n ] = attr ; exp [ n ] = val ; n ++ ; } <START_BUG> Inspiration i = new Inspiration ( null , attrs , exp ) ; <END_BUG> return i . longtip ( ) ; } } } catch ( Exception e ) { e . printStackTrace ( ) ; } return null ; } public static float [ ] safeFloat ( Float [ ] input , float [ ] def ) { } public static BufferedImage getFood ( String name ) { } public static BufferedImage getArtifact ( String name ) { } public static BufferedImage getSlots ( String name ) { } public static Tex rendertt ( Resource res , boolean withpg , boolean hotkey ) { } private static Map < Pagina , Tex > glowmasks = new WeakHashMap < Pagina , Tex > ( ) ; private Tex glowmask ( Pagina pag ) { } public void draw ( GOut g ) { } private Pagina curttp = null ; private boolean curttl = false ; Item ttitem = null ; private Tex curtt = null ; private long hoverstart ; public Object tooltip ( Coord c , Widget prev ) { } private Pagina bhit ( Coord c ) { } public boolean mousedown ( Coord c , int button ) { } public void mousemove ( Coord c ) { } private Pagina paginafor ( Resource res ) { } public Pagina paginafor ( String name ) { } public void useres ( Resource r ) { } public void use ( Pagina r ) { } public boolean senduse ( Pagina r ) { } private void selectCraft ( Pagina r ) { } public void tick ( double dt ) { } private void usecustom ( String [ ] ad ) { } public boolean mouseup ( Coord c , int button ) { } public void uimsg ( String msg , Object ... args ) { } public boolean globtype ( char k , KeyEvent ev ) { } public boolean isCrafting ( Pagina p ) { } public boolean isCrafting ( Resource res ) { } public Pagina getParent ( Pagina p ) { } public boolean isChildOf ( Pagina item , Pagina parent ) { } }

Fix:
Inspiration i = new Inspiration ( null , 0 , attrs , exp ) ;