Skip to content

Commit

Permalink
TezClient null check
Browse files Browse the repository at this point in the history
  • Loading branch information
abstractdog committed May 27, 2024
1 parent 868b2a2 commit 90ffefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tez-api/src/main/java/org/apache/tez/client/TezClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1288,10 +1288,10 @@ public static ApplicationId appIdfromString(String appIdStr) {
}

public String getAmHost() {
return frameworkClient.getAmHost();
return frameworkClient == null ? null : frameworkClient.getAmHost();
}

public int getAmPort() {
return frameworkClient.getAmPort();
return frameworkClient == null ? -1 : frameworkClient.getAmPort();
}
}

0 comments on commit 90ffefe

Please sign in to comment.