Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319758 - NPE during project import
Summary: NPE during project import
Status: RESOLVED FIXED
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 13:20 EDT by Navid Mehregani CLA
Modified: 2010-07-14 04:05 EDT (History)
2 users (show)

See Also:


Attachments
Patch (3.00 KB, patch)
2010-07-13 17:19 EDT, Navid Mehregani CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Navid Mehregani CLA 2010-07-13 13:20:00 EDT
Build Identifier: 

I got a lot of these NPEs in Tigerstripe when I imported the SDK Models:

java.lang.NullPointerException
	at org.eclipse.tigerstripe.workbench.internal.tools.compare.CompareUtils.compareStereotypes(CompareUtils.java:410)
	at org.eclipse.tigerstripe.workbench.internal.tools.compare.Comparer.compareArtifacts(Comparer.java:83)
	at org.eclipse.tigerstripe.workbench.internal.tools.compare.Comparer.compareArtifacts(Comparer.java:32)
	at org.eclipse.tigerstripe.workbench.ui.internal.gmf.synchronization.ProjectDiagramsSynchronizer.artifactChanged(ProjectDiagramsSynchronizer.java:380)
	at org.eclipse.tigerstripe.workbench.internal.core.model.ArtifactManager.notifyArtifactChanged(ArtifactManager.java:1408)
	at org.eclipse.tigerstripe.workbench.internal.core.model.ArtifactManager.addArtifact(ArtifactManager.java:1650)
	at org.eclipse.tigerstripe.workbench.internal.core.model.ArtifactManager.artifactResourceChanged(ArtifactManager.java:2437)
	at org.eclipse.tigerstripe.workbench.internal.core.TigerstripeWorkspaceNotifier$4.run(TigerstripeWorkspaceNotifier.java:165)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.tigerstripe.workbench.internal.core.TigerstripeWorkspaceNotifier.broadcastArtifactResourceChanged(TigerstripeWorkspaceNotifier.java:158)
	at org.eclipse.tigerstripe.workbench.internal.core.TigerstripeWorkspaceNotifier.access$0(TigerstripeWorkspaceNotifier.java:151)
	at org.eclipse.tigerstripe.workbench.internal.core.TigerstripeWorkspaceNotifier$1.run(TigerstripeWorkspaceNotifier.java:115)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Reproducible: Didn't try
Comment 1 Eric Dillon CLA 2010-07-13 13:26:32 EDT
I am guessing it has to do with not having the right version of the Tigerstripe profile installed, which means a stereotype definition might be missing... still should be handled gracefully.
Comment 2 Navid Mehregani CLA 2010-07-13 13:49:27 EDT
Eric, your guess was correct.  I agree that it should be handled gracefully.
Comment 3 Navid Mehregani CLA 2010-07-13 17:19:36 EDT
Created attachment 174236 [details]
Patch

Modified Files:
  InstanceDiagramSynchronizerUtils
  CompareUtils
Comment 4 Richard Craddock CLA 2010-07-14 04:05:33 EDT
Patch applied