()
| 655 | |
| 656 | // ZAP: FindBugs fix - make method synchronised |
| 657 | public static synchronized View getSingleton() { |
| 658 | if (view == null) { |
| 659 | if (daemon) { |
| 660 | Exception e = new Exception("Attempting to initialise View in daemon mode"); |
| 661 | LOGGER.error(e.getMessage(), e); |
| 662 | return null; |
| 663 | } |
| 664 | |
| 665 | LOGGER.info("Initialising View"); |
| 666 | view = new View(); |
| 667 | view.init(); |
| 668 | } |
| 669 | |
| 670 | return view; |
| 671 | } |
| 672 | |
| 673 | public static boolean isInitialised() { |
| 674 | return view != null; |
no test coverage detected