[hg] main-silver: #235295:IllegalArgumentException: No parser fo...

  • From: Tomas Zezula < >
  • To:
  • Subject: [hg] main-silver: #235295:IllegalArgumentException: No parser fo...
  • Date: Tue, 03 Sep 2013 15:56:47 -0700

changeset a4e1ed5ee7fe in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/a4e1ed5ee7fe
description:
        #235295:IllegalArgumentException: No parser for mime type: text/x-java

diffstat:

 parsing.api/src/org/netbeans/modules/parsing/impl/SourceCache.java |  9 
+++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff --git 
a/parsing.api/src/org/netbeans/modules/parsing/impl/SourceCache.java 
b/parsing.api/src/org/netbeans/modules/parsing/impl/SourceCache.java
--- a/parsing.api/src/org/netbeans/modules/parsing/impl/SourceCache.java
+++ b/parsing.api/src/org/netbeans/modules/parsing/impl/SourceCache.java
@@ -199,6 +199,15 @@
             final Snapshot _snapshot = getSnapshot ();
             final Collection<Snapshot> _tmp = Collections.singleton 
(_snapshot);
             _parser = parserFactory.createParser (_tmp);
+            if (_parser == null) {
+                LOG.log(
+                    Level.INFO,
+                    "Parser factory: {0} returned null parser for {1}", 
//NOI18N
+                    new Object[]{
+                        parserFactory,
+                        _snapshot
+                    });
+            }
         }
 
         synchronized (TaskProcessor.INTERNAL_LOCK) {

[hg] main-silver: #235295:IllegalArgumentException: No parser fo...

Tomas Zezula 09/03/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close