Bug 463782 - [Progress] Eclipse4 progress dialog NPE when click on Details button
Summary: [Progress] Eclipse4 progress dialog NPE when click on Details button
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 8
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2015-04-02 06:57 EDT by Yann Zimmermann CLA
Modified: 2020-02-11 11:24 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yann Zimmermann CLA 2015-04-02 06:57:07 EDT
A NPE (with popup error) is throwed when we click on the button "Details >>" of the progress dialog.

It seems to be a problem with the injection of ContentProviderFactory that fails in ProgressServiceImpl. The injection is marked as optional, so member contentProviderFactory remains null and there is not test on this later.

In the class ContentProviderFactory , there is a comment "//TODO E4 workaround for @Creatable problem", is it related to?

Some details of my implementation:
- platform luna with e4
- the plugin is added in the application
- the progress view works well
- the progress dialog is fine except when we click on "Details >>"
- After creating the job and scheduling it, I launch the progress dialog with showInDialog(shell, job) of an injection instance of IProgressService. The same problem occurs if I use job.setUser(true) instead of calling showInDialog

I tried using the plugin from two sources, with the same result:
- from the update repository https://hudson.eclipse.org/platform/job/eclipse4-progress-view/lastSuccessfulBuild/artifact/releng/org.eclipse.e4.ui.progress.update/target/repository/
- directly from sources, branch 4_4_maintenance
Comment 1 Patrik Suzzi CLA 2016-04-01 14:33:36 EDT
Thanks for the detailed description, however key information is missing, as I see no clear way to reproduce the bug.

- Could you provide a minimal workspace that shows the bug; the steps to reproduce or a log file with the stack trace ?


Notes to clarify:
- There is no error on the Eclipse IDE progress dialog neither in Eclipse 4.4 nor in Eclipse 4.6 I-Build. The error is related to "Eclipse4/ProgressView" [#1]
- The severity of this bug is normal, as there is no loss of data, or major loss of functionalities [#2]

#1 https://wiki.eclipse.org/Eclipse4/ProgressView
#2 https://wiki.eclipse.org/WTP/Conventions_of_bug_priority_and_severity
Comment 2 Yann Zimmermann CLA 2016-04-03 17:17:45 EDT
I will test if the problem occurs yet with a recent version and try to create a minimal workspace within next days.

As far as I remember I had this problem inside my own application but also trying one example provided in the source tree (I do not rememeber which one)
Comment 3 Patrik Suzzi CLA 2016-06-05 09:37:57 EDT
Is there any news here?