#252630 Bypass the NullPointerException
authorJulien Enselme <jenselme@netbeans.org>
Fri, 05 Jun 2015 21:20:53 +0200
changeset 18277e61866d84a4f
parent 18276 354d09a6d9b6
child 18278 a8b7be7a3aa0
#252630 Bypass the NullPointerException
python.editor/src/org/netbeans/modules/python/editor/PythonParser.java
     1.1 --- a/python.editor/src/org/netbeans/modules/python/editor/PythonParser.java	Fri May 29 17:00:56 2015 -0500
     1.2 +++ b/python.editor/src/org/netbeans/modules/python/editor/PythonParser.java	Fri Jun 05 21:20:53 2015 +0200
     1.3 @@ -295,8 +295,12 @@
     1.4                                  return file.getName();
     1.5                              }
     1.6                          };
     1.7 -
     1.8 -                        super.reportError(br, re);
     1.9 +                        try {
    1.10 +                            super.reportError(br, re);
    1.11 +                        } catch (NullPointerException e) {
    1.12 +                            
    1.13 +                        }
    1.14 +                        
    1.15                      }
    1.16                  }
    1.17              };