diff --git a/tool/src/main/java/com/fidesmo/fdsm/Main.java b/tool/src/main/java/com/fidesmo/fdsm/Main.java index f050d34..fdb7b6f 100644 --- a/tool/src/main/java/com/fidesmo/fdsm/Main.java +++ b/tool/src/main/java/com/fidesmo/fdsm/Main.java @@ -326,8 +326,9 @@ public static void main(String[] argv) { DeliveryUrl delivery = DeliveryUrl.parse(args.valueOf(OPT_RUN)); if (delivery.isWebSocket()) { - FidesmoCard fidesmoCard = fidesmoMetadata.get(); - fidesmoCard.selectEmpty(bibo); + if (fidesmoMetadata.isPresent()) { + fidesmoMetadata.get().selectEmpty(bibo); + } boolean success = WsClient.execute(new URI(delivery.getService()), bibo, auth).join().isSuccess(); if (!success) { fail("Fail to run a script");