Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EPackage with no ResourceSet?
EPackage with no ResourceSet? [message #1479472] Wed, 19 November 2014 13:02 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Hi there,

in some OCL registration code I get a NPE because the code
ePackage.eResource().getResourceSet() returns null. The ePackage is just
a normal EMF model registered via the Extension Point
org.eclipse.emf.ecore.generated_package.

Under what circumstances can the ResourceSet be null for an ePackage?

Cheers,
Hauke
Re: EPackage with no ResourceSet? [message #1479477 is a reply to message #1479472] Wed, 19 November 2014 13:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Hauke,

Generated package instances are generally not in any resource set.


On 19/11/2014 2:02 PM, Hauke Fuhrmann wrote:
> Hi there,
>
> in some OCL registration code I get a NPE because the code
> ePackage.eResource().getResourceSet() returns null. The ePackage is
> just a normal EMF model registered via the Extension Point
> org.eclipse.emf.ecore.generated_package.
>
> Under what circumstances can the ResourceSet be null for an ePackage?
>
> Cheers,
> Hauke


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Element names in the generated XSD file
Next Topic:XSD to dynamic meta model?
Goto Forum:
  


Current Time: Thu Apr 25 07:51:03 GMT 2024

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

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

Back to the top