Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » When loading Xtext resources at start, encodingProvider of XtextResource is null.
When loading Xtext resources at start, encodingProvider of XtextResource is null. [message #1214027] Wed, 27 November 2013 09:04
Jens Rabe is currently offline Jens Rabe
Messages: 53
Registered: September 2013
Member
I have a strange problem. When I start my Eclipse product and it tries to restore the editors, upon loading the first XtextResource for the first time, its encoding provider is null which causes an NPE in getEncoding() resulting in a ProvisionException. However, when I catch this exception and immediately do the SAME thing again in the catch block, the resource loads fine. What is going wrong here?
Previous Topic:How to synchronize the EObject underneath the Xtext editor with another editor?
Next Topic:Generating code from DSL files in the classpath
Goto Forum:
  


Current Time: Sun Apr 20 02:52:40 EDT 2014

Powered by FUDForum. Page generated in 0.04233 seconds