removed an unnecessary print statement and caught an exception

This commit is contained in:
Zhi You Tan
2017-07-27 13:01:04 +12:00
parent 96ed5e445e
commit c2c34705d5
@@ -90,7 +90,6 @@ public class LobbyController implements Initializable, Observer{
private void setContentPane(String jfxUrl) { private void setContentPane(String jfxUrl) {
try { try {
AnchorPane contentPane = (AnchorPane) lobbyScreen.getParent(); AnchorPane contentPane = (AnchorPane) lobbyScreen.getParent();
System.out.println(contentPane);
contentPane.getChildren().removeAll(); contentPane.getChildren().removeAll();
contentPane.getChildren().clear(); contentPane.getChildren().clear();
contentPane.getStylesheets().add(getClass().getResource("/css/master.css").toString()); contentPane.getStylesheets().add(getClass().getResource("/css/master.css").toString());
@@ -100,6 +99,8 @@ public class LobbyController implements Initializable, Observer{
System.out.println("[Controller] FXML load exception"); System.out.println("[Controller] FXML load exception");
} catch (IOException e) { } catch (IOException e) {
System.out.println("[Controller] IO exception"); System.out.println("[Controller] IO exception");
} catch (NullPointerException e) {
// System.out.println("[Controller] Null Pointer Exception");
} }
} }