From 14f94c13789b8ace4eae258b5f1d64494518f9c3 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 21 Dec 2015 14:04:12 +0000
Subject: [PATCH] Remove null checks on returned values of Entry.get*Attribute*() methods.

---
 opendj-server-legacy/src/main/java/org/opends/server/tasks/ShutdownTask.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tasks/ShutdownTask.java b/opendj-server-legacy/src/main/java/org/opends/server/tasks/ShutdownTask.java
index fec4bdc..ad37e96 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tasks/ShutdownTask.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tasks/ShutdownTask.java
@@ -96,7 +96,7 @@
 
     AttributeType attrType = DirectoryServer.getAttributeTypeOrDefault(ATTR_SHUTDOWN_MESSAGE);
     List<Attribute> attrList = taskEntry.getAttribute(attrType);
-    if (attrList != null && !attrList.isEmpty())
+    if (!attrList.isEmpty())
     {
       Attribute attr = attrList.get(0);
       if (!attr.isEmpty())
@@ -109,7 +109,7 @@
 
     attrType = DirectoryServer.getAttributeTypeOrDefault(ATTR_RESTART_SERVER);
     attrList = taskEntry.getAttribute(attrType);
-    if (attrList != null && !attrList.isEmpty())
+    if (!attrList.isEmpty())
     {
       Attribute attr = attrList.get(0);
       if (!attr.isEmpty())

--
Gitblit v1.10.0