Kristoffer 24 Author Share Posted February 16, 2015 Are you initializing that combobox anywhere? Yep barTypeJCB = new JComboBox<>(); Link to comment Share on other sites More sharing options...
Nuclear Nezz 2056 Share Posted February 17, 2015 I think Data might be null? Can you post your whole GUI in a pastebin or something? Link to comment Share on other sites More sharing options...
Kristoffer 24 Author Share Posted February 17, 2015 I think Data might be null? Can you post your whole GUI in a pastebin or something? http://pastebin.com/N7LYNdzn Link to comment Share on other sites More sharing options...
Pandemic 2723 Share Posted February 17, 2015 http://pastebin.com/N7LYNdzn When you declare the combobox, you either need to initialize it at the same time, or put it in a static initializer block (static { //initialize }). Link to comment Share on other sites More sharing options...
Kristoffer 24 Author Share Posted February 18, 2015 When you declare the combobox, you either need to initialize it at the same time, or put it in a static initializer block (static { //initialize }). Any idea why this is throwing an NPE? It's in my Data class. public static GameObject bankBooth = script.getGameObjects().closest("Bank booth"); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.