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 14: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: Thu Oct 30 17:31:41 GMT 2014

Powered by FUDForum. Page generated in 0.02320 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software