From: Jonathan Gathman Date: Thu, 3 Jan 2019 16:31:22 +0000 (+0000) Subject: Merge "Soanr fix: AbsCredBody.java" X-Git-Tag: 2.1.9~66 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=012c59918c6fb9ce8a925a82bff3877104212a27;hp=1c5a9a2adec0370b2a51dffb42a76012095a5da0;p=aaf%2Fauthz.git Merge "Soanr fix: AbsCredBody.java" --- diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/AbsCredBody.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/AbsCredBody.java index c0d16b06..db45e206 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/AbsCredBody.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/bodies/AbsCredBody.java @@ -3,6 +3,8 @@ * org.onap.aaf * =========================================================================== * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. + * + * Modifications Copyright (C) 2018 IBM. * =========================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,13 +27,13 @@ import java.util.List; public abstract class AbsCredBody extends NotifyBody { - public AbsCredBody(final String name) throws IOException { + public AbsCredBody(final String name) { super("cred",name); } @Override public String user(List row) { - if(row.size()>0) { + if( (row != null) && !row.isEmpty()) { return row.get(1); } return null;