# HG changeset patch # User Jaroslav Bachorik # Date 1232120783 -3600 # Node ID b0058c3c9caf45e8bc0d180d2c9d0b084517887f # Parent 542cbfdc8af9a8d30a5e6f7741ad70ab36e417c1 [mq]: languages.document.null diff -r 542cbfdc8af9 -r b0058c3c9caf languages/src/org/netbeans/modules/languages/ParserListenerFactoryImpl.java --- a/languages/src/org/netbeans/modules/languages/ParserListenerFactoryImpl.java Fri Jan 16 16:37:34 2009 +0100 +++ b/languages/src/org/netbeans/modules/languages/ParserListenerFactoryImpl.java Fri Jan 16 16:46:23 2009 +0100 @@ -72,7 +72,8 @@ @Override public Collection create (Snapshot snapshot) { - Document document = snapshot.getSource ().getDocument (false); + // need to pass true here - if the document is not open just open it + Document document = snapshot.getSource ().getDocument (true); String mimeType = snapshot.getMimeType (); if (!LanguagesManager.getDefault ().isSupported (mimeType)) return null; //System.out.println("\nASTEvaluators: ");