Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322079 - NPE in EMFModelValidationPlugin.getPluginId()
Summary: NPE in EMFModelValidationPlugin.getPluginId()
Status: RESOLVED FIXED
Alias: None
Product: EMF Services
Classification: Modeling
Component: Validation (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: 1.13.0   Edit
Assignee: EMF Services Validation inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-08 09:48 EDT by Mirko Seifert CLA
Modified: 2020-12-28 06:28 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mirko Seifert CLA 2010-08-08 09:48:00 EDT
Build Identifier: I20100608-0911

When I use the EMF validation class from an ANT script that runs inside of Eclipse I get the NPE mentioned above. The problem is that EMFPlugin.IS_ECLIPSE_RUNNING is true, because Eclipse is running, but the EMFValidation plug-in is not initialized.

The condition of the if/else statements should be extended to

!EMFPlugin.IS_ECLIPSE_RUNNING || getPlugin() == null

Reproducible: Always