Skip to content

Commit

Permalink
Make sure console is not null
Browse files Browse the repository at this point in the history
(reference #105)
  • Loading branch information
piotrzarzycki21 committed Feb 2, 2024
1 parent c61f000 commit f365bbf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Source/superhuman/server/Server.hx
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,10 @@ class Server {
function _batchCopyComplete() {

Logger.debug( '${this}: Setting working directory to ${_serverDir}' );
console.appendText( LanguageManager.getInstance().getString( 'serverpage.server.console.setworkingdirectory', _serverDir ) );

if (console != null) {
console.appendText( LanguageManager.getInstance().getString( 'serverpage.server.console.setworkingdirectory', _serverDir ) );
}

_saveSafeId();

if ( !_provisioner.hostFileExists ) _provisioner.saveHostsFile();
Expand All @@ -659,7 +661,6 @@ class Server {
}

_startVagrantUp();

}

function _saveSafeId() {
Expand Down

0 comments on commit f365bbf

Please sign in to comment.