Failing JUs
[aaf/authz.git] / auth / auth-batch / src / main / java / org / onap / aaf / auth / batch / reports / bodies / AbsCredBody.java
index c0d16b0..6dd5bb2 100644 (file)
@@ -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.
  */
 package org.onap.aaf.auth.batch.reports.bodies;
 
-import java.io.IOException;
 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<String> row) {
-               if(row.size()>0) {
+               if( (row != null) && row.size()>1) {
                        return row.get(1);
                }
                return null;