Project: Eclipse_Platform_UI
Bug 163809 [Progress] NullPointer in AnimationManager
Reported: 2006-11-08 09:40:20 | Status: verified fixed

I am writing an rcp app. If I leave an editor open ( an editor of my own making ) and re-run eclipse it occasionally throws a NullPointer. The editor kicks off a job as soon as it has its input set and it would appear the job animation manager is called before it is fully initialized. The error log entry follows: !ENTRY org.eclipse.core.jobs 4 2 2006-11-08 14:11:58.463 !MESSAGE An internal error occurred during: "Building workspace". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.progress.AnimationManager.setAnimated(AnimationManager.java:121) at org.eclipse.ui.internal.progress.AnimationManager$2.incrementJobCount(AnimationManager.java:198) at org.eclipse.ui.internal.progress.AnimationManager$2.addJob(AnimationManager.java:142) at org.eclipse.ui.internal.progress.AnimationManager$2.refreshJobInfo(AnimationManager.java:153) at org.eclipse.ui.internal.progress.ProgressManager.refreshJobInfo(ProgressManager.java:615) at org.eclipse.ui.internal.progress.ProgressManager$JobMonitor.beginTask(ProgressManager.java:203) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:136) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java