This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 248683 - NPE in DateRange.isWeekAfterNext()
Summary: NPE in DateRange.isWeekAfterNext()
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 3.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P1 critical with 3 votes (vote)
Target Milestone: 3.0.3   Edit
Assignee: Robert Elves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 249324 249688 249804 250603 250610 250620 250634 250758 250760 250888 250927 251147 251211 251254 251350 251355 251534 251903 253079 253975 269326 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-26 02:44 EDT by Rob Gaunt CLA
Modified: 2009-03-19 13:10 EDT (History)
27 users (show)

See Also:


Attachments
Fix w/refactoring (29.96 KB, patch)
2008-10-01 14:29 EDT, Robert Elves CLA
no flags Details | Diff
updated patch (29.71 KB, patch)
2008-10-01 16:34 EDT, Robert Elves CLA
no flags Details | Diff
additional fix (1.72 KB, patch)
2008-10-14 21:21 EDT, Steffen Pingel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Gaunt CLA 2008-09-26 02:44:22 EDT
Build ID: M20080903-2000

Steps To Reproduce:
1.double click on existing local task
2.error


More information:
If I create a new task, it works correctly.

When I try to open an existing task (using a local repository) an error occurs:

!ENTRY org.eclipse.ui 4 0 2008-09-26 14:00:48.587
!MESSAGE Unable to create editor ID org.eclipse.mylyn.tasks.ui.editors.task: An unexpected exception was thrown.
!STACK 0
java.lang.NullPointerException
	at org.eclipse.mylyn.internal.tasks.core.DateRange.isWeekAfterNext(DateRange.java:122)
	at org.eclipse.mylyn.internal.tasks.core.DateRange.toString(DateRange.java:112)
	at org.eclipse.mylyn.internal.tasks.ui.ScheduleDatePicker.updateDateText(ScheduleDatePicker.java:148)
	at org.eclipse.mylyn.internal.tasks.ui.ScheduleDatePicker.initialize(ScheduleDatePicker.java:126)
	at org.eclipse.mylyn.internal.tasks.ui.ScheduleDatePicker.<init>(ScheduleDatePicker.java:65)
	at org.eclipse.mylyn.internal.tasks.ui.editors.TaskPlanningEditor.createPlanningSection(TaskPlanningEditor.java:637)
	at org.eclipse.mylyn.internal.tasks.ui.editors.TaskPlanningEditor.createFormContent(TaskPlanningEditor.java:333)
	at org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:151)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
Comment 1 Bill Hannah CLA 2008-09-30 23:51:02 EDT
This just started happening to me whenever I try and open or create a local task.  Opening remote tasks (via Jira connector) works fine. I am on Windows running Ganymede.  I am also located in NZ, and we recently had a TZ update for DST, which may be why this is crapping out.  I noticed that reporter was in AU.

Error Log:
java.lang.NullPointerException
	at org.eclipse.mylyn.internal.tasks.core.DateRange.isNextWeek(DateRange.java:155)
	at org.eclipse.mylyn.internal.tasks.core.DateRange.toString(DateRange.java:113)
	at org.eclipse.mylyn.internal.tasks.ui.ScheduleDatePicker.updateDateText(ScheduleDatePicker.java:151)
	at org.eclipse.mylyn.internal.tasks.ui.ScheduleDatePicker.initialize(ScheduleDatePicker.java:129)
	at org.eclipse.mylyn.internal.tasks.ui.ScheduleDatePicker.<init>(ScheduleDatePicker.java:68)
	at org.eclipse.mylyn.internal.tasks.ui.editors.TaskPlanningEditor.createPlanningSection(TaskPlanningEditor.java:640)
	at org.eclipse.mylyn.internal.tasks.ui.editors.TaskPlanningEditor.createFormContent(TaskPlanningEditor.java:336)
	at org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:151)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:149)
	at org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:488)
	at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:973)
	at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:623)
	at org.eclipse.ui.forms.editor.SharedHeaderFormEditor.createPages(SharedHeaderFormEditor.java:102)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:310)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2635)
	at org.eclipse.mylyn.tasks.ui.TasksUiUtil.openEditor(TasksUiUtil.java:188)
	at org.eclipse.mylyn.tasks.ui.TasksUiUtil.openTask(TasksUiUtil.java:302)
	at org.eclipse.mylyn.internal.tasks.ui.wizards.NewLocalTaskWizard.performFinish(NewLocalTaskWizard.java:67)
	at org.eclipse.mylyn.tasks.ui.TasksUiUtil.openNewTaskEditor(TasksUiUtil.java:233)
	at org.eclipse.mylyn.tasks.ui.TasksUiUtil.openNewLocalTaskEditor(TasksUiUtil.java:223)
	at org.eclipse.mylyn.internal.tasks.ui.actions.NewTaskAction.run(NewTaskAction.java:41)
	at org.eclipse.mylyn.internal.tasks.ui.actions.NewTaskAction.run(NewTaskAction.java:53)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
Comment 2 Bill Hannah CLA 2008-09-30 23:53:03 EDT
This just started happening to me whenever I try and open or create a local
task.  Opening remote tasks (via Jira connector) works fine. I am on Windows
running Ganymede.  I am also located in NZ, and we recently had a TZ update for
DST, which may be why this is crapping out.  I noticed that reporter was in AU.

Error Log:
java.lang.NullPointerException
        at
org.eclipse.mylyn.internal.tasks.core.DateRange.isNextWeek(DateRange.java:155)
        at
org.eclipse.mylyn.internal.tasks.core.DateRange.toString(DateRange.java:113)
        at
org.eclipse.mylyn.internal.tasks.ui.ScheduleDatePicker.updateDateText(ScheduleDatePicker.java:151)
        at
org.eclipse.mylyn.internal.tasks.ui.ScheduleDatePicker.initialize(ScheduleDatePicker.java:129)
        at
org.eclipse.mylyn.internal.tasks.ui.ScheduleDatePicker.<init>(ScheduleDatePicker.java:68)
        at
org.eclipse.mylyn.internal.tasks.ui.editors.TaskPlanningEditor.createPlanningSection(TaskPlanningEditor.java:640)
        at
org.eclipse.mylyn.internal.tasks.ui.editors.TaskPlanningEditor.createFormContent(TaskPlanningEditor.java:336)
        at org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:151)
        at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at
org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:149)
        at
org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:488)
        at
org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:973)
        at
org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:623)
        at
org.eclipse.ui.forms.editor.SharedHeaderFormEditor.createPages(SharedHeaderFormEditor.java:102)
        at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:310)
        at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
        at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
        at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
        at
org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
        at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)
        at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
        at
org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
        at
org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
        at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
        at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
        at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2635)
        at
org.eclipse.mylyn.tasks.ui.TasksUiUtil.openEditor(TasksUiUtil.java:188)
        at
org.eclipse.mylyn.tasks.ui.TasksUiUtil.openTask(TasksUiUtil.java:302)
        at
org.eclipse.mylyn.internal.tasks.ui.wizards.NewLocalTaskWizard.performFinish(NewLocalTaskWizard.java:67)
        at
org.eclipse.mylyn.tasks.ui.TasksUiUtil.openNewTaskEditor(TasksUiUtil.java:233)
        at
org.eclipse.mylyn.tasks.ui.TasksUiUtil.openNewLocalTaskEditor(TasksUiUtil.java:223)
        at
org.eclipse.mylyn.internal.tasks.ui.actions.NewTaskAction.run(NewTaskAction.java:41)
        at
org.eclipse.mylyn.internal.tasks.ui.actions.NewTaskAction.run(NewTaskAction.java:53)
        at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
        at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
        at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
        at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
Comment 3 Shawn Minto CLA 2008-10-01 11:21:29 EDT
*** Bug 249324 has been marked as a duplicate of this bug. ***
Comment 4 Robert Elves CLA 2008-10-01 14:29:20 EDT
Created attachment 114027 [details]
Fix w/refactoring
Comment 5 Robert Elves CLA 2008-10-01 16:34:09 EDT
Created attachment 114043 [details]
updated patch
Comment 6 Robert Elves CLA 2008-10-02 20:49:33 EDT
Patch applied.
Comment 7 Steffen Pingel CLA 2008-10-03 14:27:35 EDT
Patch applied to 3.0.x branch.
Comment 8 Shawn Minto CLA 2008-10-06 11:38:45 EDT
*** Bug 249804 has been marked as a duplicate of this bug. ***
Comment 9 Steffen Pingel CLA 2008-10-06 13:11:46 EDT
*** Bug 249688 has been marked as a duplicate of this bug. ***
Comment 10 Steffen Pingel CLA 2008-10-13 17:52:29 EDT
*** Bug 250603 has been marked as a duplicate of this bug. ***
Comment 11 Steffen Pingel CLA 2008-10-13 18:15:38 EDT
*** Bug 250610 has been marked as a duplicate of this bug. ***
Comment 12 Steffen Pingel CLA 2008-10-13 18:15:42 EDT
*** Bug 250620 has been marked as a duplicate of this bug. ***
Comment 13 Steffen Pingel CLA 2008-10-13 18:16:11 EDT
*** Bug 250634 has been marked as a duplicate of this bug. ***
Comment 14 Steffen Pingel CLA 2008-10-13 18:24:34 EDT
A fixed build is available from the weekly update site:

 http://www.eclipse.org/mylyn/downloads/#weekly
Comment 15 Kaloyan Raev CLA 2008-10-14 05:55:40 EDT
The upgrade to 3.0.3.I20081009-2100-e3x fixed the problem for me.
It is nice to see the solution already available at the time you experience the problem. Thanks!
Comment 16 Mik Kersten CLA 2008-10-14 11:58:49 EDT
Steffen: I assume that we will want to promote one of the weekly builds to a 3.0.3 release, due to the severity of this bug.  Let's chat on today's call.
Comment 17 Steffen Pingel CLA 2008-10-14 16:07:49 EDT
*** Bug 250758 has been marked as a duplicate of this bug. ***
Comment 18 Steffen Pingel CLA 2008-10-14 16:08:09 EDT
*** Bug 250760 has been marked as a duplicate of this bug. ***
Comment 19 Steffen Pingel CLA 2008-10-14 21:21:12 EDT
Created attachment 115105 [details]
additional fix
Comment 20 Steffen Pingel CLA 2008-10-15 03:22:39 EDT
*** Bug 250888 has been marked as a duplicate of this bug. ***
Comment 21 Steffen Pingel CLA 2008-10-15 12:32:46 EDT
*** Bug 250927 has been marked as a duplicate of this bug. ***
Comment 22 Steffen Pingel CLA 2008-10-16 17:39:45 EDT
*** Bug 251147 has been marked as a duplicate of this bug. ***
Comment 23 Steffen Pingel CLA 2008-10-16 17:41:40 EDT
A fixed build with version 3.0.3.v20081015-1500 is now available from the main update sites.
Comment 24 Steffen Pingel CLA 2008-10-17 13:11:13 EDT
*** Bug 251211 has been marked as a duplicate of this bug. ***
Comment 25 Steffen Pingel CLA 2008-10-17 13:15:36 EDT
*** Bug 251254 has been marked as a duplicate of this bug. ***
Comment 26 Steffen Pingel CLA 2008-10-20 02:58:34 EDT
*** Bug 251350 has been marked as a duplicate of this bug. ***
Comment 27 Steffen Pingel CLA 2008-10-20 12:51:57 EDT
*** Bug 251355 has been marked as a duplicate of this bug. ***
Comment 28 Steffen Pingel CLA 2008-10-21 12:40:57 EDT
*** Bug 251534 has been marked as a duplicate of this bug. ***
Comment 29 Steffen Pingel CLA 2008-10-23 15:41:24 EDT
*** Bug 251903 has been marked as a duplicate of this bug. ***
Comment 30 Steffen Pingel CLA 2008-11-01 21:33:48 EDT
*** Bug 253079 has been marked as a duplicate of this bug. ***
Comment 31 Steffen Pingel CLA 2008-11-05 14:21:46 EST
*** Bug 253975 has been marked as a duplicate of this bug. ***
Comment 32 valerie bauche CLA 2009-01-12 04:31:56 EST
I have the same exception with an eclipse 3.4.1 M20080911-1700
I get it when I open eclipse : the package explorer view can't open and print this exception....
Comment 33 valerie bauche CLA 2009-01-12 04:36:49 EST
Finaly it's not really the same exception :

Could not create the view: An unexpected exception was thrown.
java.lang.NullPointerException
	at org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper$ArchiveCache.releaseArchive(JavaEEBinaryComponentHelper.java:401)
	at org.eclipse.jst.j2ee.internal.componentcore.JavaEEBinaryComponentHelper.dispose(JavaEEBinaryComponentHelper.java:299)

Should I open a new bug ?
Comment 34 Robert Elves CLA 2009-01-12 13:43:33 EST
(In reply to comment #33)
> Should I open a new bug ?
Please, and against the j2ee standard tools project by the looks of that stack trace. Thanks.
Comment 35 Steffen Pingel CLA 2009-03-19 13:10:28 EDT
*** Bug 269326 has been marked as a duplicate of this bug. ***