OPENDJ-2474 Fix NPE when stopping server with not fully started server
| | |
| | | public final synchronized void removeAllLogPublishers() |
| | | { |
| | | loggerStorage.removeAllLogPublishers(); |
| | | // Access logger may have not been fully initialized |
| | | if (getServerContext() != null && getServerContext().getCommonAudit() != null) |
| | | { |
| | | getServerContext().getCommonAudit().shutdown(); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | public final synchronized void removeAllLogPublishers() |
| | | { |
| | | loggerStorage.removeAllLogPublishers(); |
| | | // Access logger may have not been fully initialized |
| | | if (getServerContext() != null && getServerContext().getCommonAudit() != null) |
| | | { |
| | | getServerContext().getCommonAudit().shutdown(); |
| | | } |
| | | } |
| | | |
| | | } |