From your code findControl method is returing null which is causing this nullpointer exception as it makes control null. Just wild wild wild guess and please ignore this if its not correct. Are you expecting to pass "console" in findControl method or it should be same as "console-popup". Sometimes we do type error and look into different direction.
Anyway Just to complete the answer you can add this line just after calling find Control method.
final ConsoleControl control = (ConsoleControl)this.nifty.createPopup("console-popup").findControl("console", ConsoleControl.class);
if(control == null){
//log error message if want
return;
}