You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tez.apache.org by GitBox <gi...@apache.org> on 2021/02/04 19:46:10 UTC

[GitHub] [tez] abstractdog commented on a change in pull request #103: TEZ-4282: Possible NPE in LocalClient after TEZ-4236

abstractdog commented on a change in pull request #103:
URL: https://github.com/apache/tez/pull/103#discussion_r570498327



##########
File path: tez-dag/src/main/java/org/apache/tez/client/LocalClient.java
##########
@@ -438,7 +447,9 @@ public DAGStatus apply(Set<StatusGetOpts> statusOpts, Long timeout) {
   public boolean shutdownSession(Configuration configuration, ApplicationId sessionAppId,
       UserGroupInformation ugi) throws TezException, IOException, ServiceException {
     if (isLocalWithoutNetwork) {
-      clientHandler.shutdownAM();
+      if (clientHandler != null){
+        clientHandler.shutdownAM();
+      }
       return true;
     } else {

Review comment:
       right, updating it




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org