PIG-5307: NPE in TezOperDependencyParallelismEstimator (rohini)

git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1810606 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index ec1bc73..99df4cb 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -52,6 +52,8 @@
  
 BUG FIXES
 
+PIG-5307: NPE in TezOperDependencyParallelismEstimator (rohini)
+
 PIG-5272: BagToTuple output schema is incorrect (juen1jp via rohini)
 
 PIG-5271: StackOverflowError when compiling in Tez mode (with union and replicated join) (knoguchi)
diff --git a/src/org/apache/pig/backend/hadoop/executionengine/tez/plan/optimizer/TezOperDependencyParallelismEstimator.java b/src/org/apache/pig/backend/hadoop/executionengine/tez/plan/optimizer/TezOperDependencyParallelismEstimator.java
index d892e9e..b4223db 100644
--- a/src/org/apache/pig/backend/hadoop/executionengine/tez/plan/optimizer/TezOperDependencyParallelismEstimator.java
+++ b/src/org/apache/pig/backend/hadoop/executionengine/tez/plan/optimizer/TezOperDependencyParallelismEstimator.java
@@ -217,7 +217,7 @@
         public void visitFilter(POFilter fl) throws VisitorException {
             if (fl.getPlan().size()==1 && fl.getPlan().getRoots().get(0) instanceof ConstantExpression) {
                 ConstantExpression cons = (ConstantExpression)fl.getPlan().getRoots().get(0);
-                if (cons.getValue().equals(Boolean.TRUE)) {
+                if (Boolean.TRUE.equals(cons.getValue())) {
                     // skip all true condition
                     return;
                 }