mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
removed an unnecessary print statement and caught an exception
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user