Skip to main content



      Home
Home » Modeling » EMF » EPackage with no ResourceSet?
EPackage with no ResourceSet? [message #1479472] Wed, 19 November 2014 08:02 Go to next message
Eclipse UserFriend
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 08:07 Go to previous message
Eclipse UserFriend
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
Previous Topic:Element names in the generated XSD file
Next Topic:XSD to dynamic meta model?
Goto Forum:
  


Current Time: Sat Aug 30 20:52:02 EDT 2025

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

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

Back to the top