diff --git a/src/main/java/edu/illinois/cs/cogcomp/SentimentHandler.java b/src/main/java/edu/illinois/cs/cogcomp/SentimentHandler.java
index e099a377f1c4655f8703f461ebae26a97bcf73af..6ec98e723a893c8727426ef5caab3af87343c41a 100644
--- a/src/main/java/edu/illinois/cs/cogcomp/SentimentHandler.java
+++ b/src/main/java/edu/illinois/cs/cogcomp/SentimentHandler.java
@@ -106,12 +106,16 @@ public class SentimentHandler {
 
             // is this word negated
             boolean isNeg = false;
-            if (considerNeg && (polarityBingLiu.length()!=0 || polarityMpqa.length()!=0)) {
-                if(depView==null){
-                    annotator.addView(ta, ViewNames.DEPENDENCY_STANFORD);
-                    depView = ta.getView(ViewNames.DEPENDENCY_STANFORD);
+            try {
+                if (considerNeg && (polarityBingLiu.length() != 0 || polarityMpqa.length() != 0)) {
+                    if (depView == null) {
+                        annotator.addView(ta, ViewNames.DEPENDENCY_STANFORD);
+                        depView = ta.getView(ViewNames.DEPENDENCY_STANFORD);
+                    }
+                    isNeg = isNegated(wordLemm, depView);
                 }
-                isNeg = isNegated(wordLemm, depView);
+            }catch (Exception e){
+                e.printStackTrace();
             }
 
             // reverse polarity if negated