This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 166340
Collapse All | Expand All

(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/SourceCache.java (-1 / +1 lines)
Lines 154-164 Link Here
154
                return parser;
154
                return parser;
155
            }
155
            }
156
        }
156
        }
157
        final Snapshot _snapshot = getSnapshot ();
158
        Parser _parser = null;
157
        Parser _parser = null;
159
        Lookup lookup = MimeLookup.getLookup (mimeType);
158
        Lookup lookup = MimeLookup.getLookup (mimeType);
160
        ParserFactory parserFactory = lookup.lookup (ParserFactory.class);
159
        ParserFactory parserFactory = lookup.lookup (ParserFactory.class);
161
        if (parserFactory != null) {
160
        if (parserFactory != null) {
161
            final Snapshot _snapshot = getSnapshot ();
162
            final Collection<Snapshot> _tmp = Collections.singleton (_snapshot);
162
            final Collection<Snapshot> _tmp = Collections.singleton (_snapshot);
163
            _parser = parserFactory.createParser (_tmp);
163
            _parser = parserFactory.createParser (_tmp);
164
        }
164
        }

Return to bug 166340