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

Bug 351256

Summary: NPE when viewing bug details for Bugzilla, results in blank screen
Product: z_Archived Reporter: Chandra Sukiman <tmc_chandra>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: eclipse, robert.elves
Version: unspecified   
Target Milestone: 3.6.1   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Screenshot of the error
none
First exception log
none
Second exception log
none
mylyn/context/zip none

Description Chandra Sukiman CLA 2011-07-06 00:39:35 EDT
Build Identifier: I20110613-1736

When upgrading to Mylyn 3.6 on Eclipse Indigo, I could no longer view my bug details from eclipse. The Task list view is populated, however when clicking a bug item, the screen is displayed as blank. There are some workspace exception thrown which is attached below.

Reproducible: Always

Steps to Reproduce:
1. Install STS 3.7 (based on Indigo)
2. Connect to Bugzilla server and create a query
3. Wait until the bug list is populated 
4. Open any bug and it will display blank screen
Comment 1 Chandra Sukiman CLA 2011-07-06 00:46:49 EDT
Created attachment 199156 [details]
Screenshot of the error
Comment 2 Chandra Sukiman CLA 2011-07-06 00:47:22 EDT
Created attachment 199157 [details]
First exception log
Comment 3 Chandra Sukiman CLA 2011-07-06 00:47:40 EDT
Created attachment 199158 [details]
Second exception log
Comment 4 Chandra Sukiman CLA 2011-07-13 00:10:35 EDT
I realized that this bug only occurs for bug that is not assigned to myself.
I still can open bugs is assigned to me, however I cannot view others
Comment 5 Steffen Pingel CLA 2011-07-14 20:52:47 EDT
Do you have any errors in the error log (Window > Show View > Others > Error Log)?
Comment 6 Chandra Sukiman CLA 2011-07-14 22:09:33 EDT
Yes, please check the two attached files (exception1.txt) and (exception2.txt) for the error. I copied the error from the Error Log view.
Comment 7 Steffen Pingel CLA 2011-07-15 10:38:34 EDT
Sorry, I missed that. Thanks for the logs. We'll take a look.
Comment 8 Steffen Pingel CLA 2011-07-18 18:26:26 EDT
Stack Trace:

java.lang.NullPointerException
	at org.eclipse.mylyn.internal.bugzilla.core.SaxMultiBugReportContentHandler.addComment(SaxMultiBugReportContentHandler.java:676)
	at org.eclipse.mylyn.internal.bugzilla.core.SaxMultiBugReportContentHandler.addDescriptionAndComments(SaxMultiBugReportContentHandler.java:637)
	at org.eclipse.mylyn.internal.bugzilla.core.SaxMultiBugReportContentHandler.endElement(SaxMultiBugReportContentHandler.java:417)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)

Fixed in aea786ee295d3dd24b06a88f1ddf8e19c813f7cc.
Comment 9 Steffen Pingel CLA 2011-07-18 18:26:28 EDT
Created attachment 199867 [details]
mylyn/context/zip
Comment 10 Steffen Pingel CLA 2011-07-18 18:32:57 EDT
Fix for e_3_7_m_3_6_x branch: 83e6b9d4680a376d244e1e71e3d39cef48afa889.
Comment 11 Chandra Sukiman CLA 2011-07-19 21:45:55 EDT
I have tested and it works. Should I change the status of this bug?
Comment 12 Steffen Pingel CLA 2011-07-20 07:55:27 EDT
Thanks for verifying. This is fixed in the latest 3.7 weekly build and a 3.6.1 snapshot will soon be available as well.