Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352951 - null pointer exception
Summary: null pointer exception
Status: CLOSED DUPLICATE of bug 250455
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-24 11:06 EDT by Yevgeny Shifrin CLA
Modified: 2011-07-25 11:29 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yevgeny Shifrin CLA 2011-07-24 11:06:05 EDT
Build Identifier: 20110615-0604

The following exception was observed:

!ENTRY org.eclipse.ui.workbench 4 2 2011-07-24 13:12:40.415
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:207)
	at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:152)
	at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:124)
	at org.eclipse.ui.internal.WorkbenchImages.initializeImageRegistry(WorkbenchImages.java:641)
	at org.eclipse.ui.internal.WorkbenchImages.getDescriptors(WorkbenchImages.java:530)
	at org.eclipse.ui.internal.WorkbenchImages.getImageDescriptor(WorkbenchImages.java:566)
	at org.eclipse.ui.internal.registry.EditorRegistry.addSystemEditors(EditorRegistry.java:550)
	at org.eclipse.ui.internal.registry.EditorRegistry.initialIdToEditorMap(EditorRegistry.java:514)
	at org.eclipse.ui.internal.registry.EditorRegistry.<init>(EditorRegistry.java:135)
	at org.eclipse.ui.internal.WorkbenchPlugin.getEditorRegistry(WorkbenchPlugin.java:455)
	at org.eclipse.ui.internal.Workbench.getEditorRegistry(Workbench.java:1345)
	at org.eclipse.ui.internal.ide.ContentTypeDecorator.decorate(ContentTypeDecorator.java:57)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:269)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.ui 4 4 2011-07-24 13:12:40.433
!MESSAGE Exception in Decorator. The 'File Icons Based On Content Analysis' decorator will be disabled.

!ENTRY org.eclipse.ui 4 4 2011-07-24 13:12:40.433
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:207)
	at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:152)
	at org.eclipse.jface.resource.ImageRegistry.<init>(ImageRegistry.java:124)
	at org.eclipse.ui.internal.WorkbenchImages.initializeImageRegistry(WorkbenchImages.java:641)
	at org.eclipse.ui.internal.WorkbenchImages.getDescriptors(WorkbenchImages.java:530)
	at org.eclipse.ui.internal.WorkbenchImages.getImageDescriptor(WorkbenchImages.java:566)
	at org.eclipse.ui.internal.registry.EditorRegistry.addSystemEditors(EditorRegistry.java:550)
	at org.eclipse.ui.internal.registry.EditorRegistry.initialIdToEditorMap(EditorRegistry.java:514)
	at org.eclipse.ui.internal.registry.EditorRegistry.<init>(EditorRegistry.java:135)
	at org.eclipse.ui.internal.WorkbenchPlugin.getEditorRegistry(WorkbenchPlugin.java:455)
	at org.eclipse.ui.internal.Workbench.getEditorRegistry(Workbench.java:1345)
	at org.eclipse.ui.internal.ide.ContentTypeDecorator.decorate(ContentTypeDecorator.java:57)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:269)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Reproducible: Couldn't Reproduce

Steps to Reproduce:
Don't know what caused it.
Comment 1 Dani Megert CLA 2011-07-25 03:48:22 EDT
Maybe a broken install? Can you start with a fresh download?
Comment 2 Yevgeny Shifrin CLA 2011-07-25 03:56:26 EDT
Hi,

I downloaded this install from eclipse download page and working with it almost a month. This exception occurred once. Why do you think this is a broken install?

Thanks,
Yevgeny
Comment 3 Dani Megert CLA 2011-07-25 04:08:42 EDT
(In reply to comment #2)
> Hi,
> 
> I downloaded this install from eclipse download page and working with it almost
> a month. This exception occurred once. Why do you think this is a broken
> install?

This type of error is often meaning that a resource is not found (or not readable). However, this doesn't seem to be the case here: I looked closer at the code and it rather looks like this this happened while shutting down: it tries to create an image registry without having a display. This would then be bug 250455. Could this be the case?
Comment 4 Yevgeny Shifrin CLA 2011-07-25 11:17:47 EDT
Hi, 

I am not sure, but it is possible that it occurred during shotdown. There was a period that after I tried to close eclipse, it was waiting for specific action to finish before closing.

Thanks,
Yevgeny
Comment 5 Dani Megert CLA 2011-07-25 11:29:31 EDT

*** This bug has been marked as a duplicate of bug 250455 ***