Não consigo executar pois da Erro NullPointerException
Algem pode Ajudar
O codigo referente ao ERRO e linha 73
jComboBox_Instrutores.removeAllItems();
AI esta o cogiso completo
public void listarInstrutoresNoComboBox(){
InstrutorControl ins = new InstrutorControl();
instrutores = ins.listarInstrutores("%%");
jComboBox_Instrutores.removeAllItems();
for (int i = 0; i < instrutores.size(); i++){
jComboBox_Instrutores.addItem(instrutores.get(i).getNome());
}
}
Conectado ao Banco
Conectado ao Banco
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at gerenciaturma.Turma.listarInstrutoresNoComboBox(Turma.java:73)
at gerenciaturma.Turma.(Turma.java:60)
at gerenciaturma.Turma$11.run(Turma.java:647)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
CONSTRUÍDO COM SUCESSO (tempo total: 1 segundo)