diff --git a/src/com/google/javascript/jscomp/NodeUtil.java b/src/com/google/javascript/jscomp/NodeUtil.java
index <HASH>..<HASH> 100644
--- a/src/com/google/javascript/jscomp/NodeUtil.java
+++ b/src/com/google/javascript/jscomp/NodeUtil.java
@@ -2036,10 +2036,13 @@ public final class NodeUtil {
    * @param n The node
    * @return True if n is an L-value.
    */
-  static boolean isLValue(Node n) {
+  public static boolean isLValue(Node n) {
     Preconditions.checkArgument(n.isName() || n.isGetProp() ||
         n.isGetElem());
     Node parent = n.getParent();
+    if (parent == null) {
+      return false;
+    }
     return (NodeUtil.isAssignmentOp(parent) && parent.getFirstChild() == n)
         || (NodeUtil.isForIn(parent) && parent.getFirstChild() == n)
         || parent.isVar()
make some apis more public

R=jvg,fromberger
DELTA=<I>  (<I> added, 5 deleted, <I> changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=<I>


git-svn-id: <URL>