From 39596f5b6d2c67d8c2b357243ecfb2dd6d746796 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Thu, 7 Feb 2019 18:53:11 -0600 Subject: Minor fixes starting from Scratch Issue-ID: AAF-698 Change-Id: Ie279c11f9f385e9cb179cbe3e16de35cbfa33ecf Signed-off-by: Instrumental --- auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'auth/auth-batch/src/main') diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java index d49f4faf..543564d9 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/Batch.java @@ -122,6 +122,9 @@ public abstract class Batch { } org = OrganizationFactory.init(env); + if(org==null) { + throw new OrganizationException("Organization MUST be defined for Batch"); + } org.setTestMode(dryRun); // Special names to allow behaviors beyond normal rules -- cgit 1.2.3-korg