Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348132 - NPE when retrieving changes for build details
Summary: NPE when retrieving changes for build details
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.8   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 15:48 EDT by Andrew CLA
Modified: 2011-06-03 11:49 EDT (History)
0 users

See Also:


Attachments
Error log stacktrace (7.00 KB, text/plain)
2011-06-02 15:49 EDT, Andrew CLA
no flags Details
mylyn/context/zip (1.16 KB, application/octet-stream)
2011-06-03 11:49 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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