Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348132

Summary: NPE when retrieving changes for build details
Product: z_Archived Reporter: Andrew <andrew.stucky>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 0.8   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Error log stacktrace
none
mylyn/context/zip none

Description Andrew CLA 2011-06-02 15:48:44 EDT
Build Identifier: 20110301-1815

I am connected to a Hudson server with changes stored in a StarTeam repository. I receive an NPE when opening a build to see specific details.  From the stack trace, it appears that the error happens when attempting to retrieve the changes for that particular build.  After closing the error dialog, all build details are available except for the changes which appear as an empty tree view.

Reproducible: Always

Steps to Reproduce:
1.Double-click build from either Builds view or History view
2.
3.
Comment 1 Andrew CLA 2011-06-02 15:49:17 EDT
Created attachment 197266 [details]
Error log stacktrace
Comment 2 Steffen Pingel CLA 2011-06-03 11:39:30 EDT
Strac trace from attachment:

java.lang.NullPointerException
at org.eclipse.mylyn.internal.builds.ui.editor.ChangesLabelProvider.trim(ChangesLabelProvider.java:84)
at org.eclipse.mylyn.internal.builds.ui.editor.ChangesLabelProvider.getText(ChangesLabelProvider.java:75)
at org.eclipse.mylyn.internal.builds.ui.editor.ChangesLabelProvider.getStyledText(ChangesLabelProvider.java:51)
at org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.getStyledText(DelegatingStyledCellLabelProvider.java:195)
Comment 3 Steffen Pingel CLA 2011-06-03 11:47:34 EDT
Thanks for the report. I have pushed a fix that will appear in the next build.
Comment 4 Steffen Pingel CLA 2011-06-03 11:49:13 EDT
Created attachment 197313 [details]
mylyn/context/zip