From d145d9d7f157d1f8f4acff89583cfaea4d820b64 Mon Sep 17 00:00:00 2001 From: Cekis Date: Mon, 23 May 2016 14:57:28 +0100 Subject: [PATCH] Fixed null pointer issue with travel terminals when coming from a bad city. --- sku.0/sys.server/compiled/game/script/library/travel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sku.0/sys.server/compiled/game/script/library/travel.java b/sku.0/sys.server/compiled/game/script/library/travel.java index 34b5e8b1d..9eb874b73 100755 --- a/sku.0/sys.server/compiled/game/script/library/travel.java +++ b/sku.0/sys.server/compiled/game/script/library/travel.java @@ -676,7 +676,7 @@ public class travel extends script.base_script } public static obj_id getStarportFromTerminal(obj_id terminal) throws InterruptedException { - if (terminal == null || terminal == obj_id.NULL_ID) + if (terminal == null || terminal == obj_id.NULL_ID || !isIdValid(terminal)) { return null; }