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

Bug 536524

Summary: NullPointerException in StyleHelper.applyStyles
Product: [Technology] MPC Reporter: EPP Error Reports <error-reports-inbox>
Component: InstallAssignee: Project Inbox <mpc.install-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: abc45628, difu.wang, gautier.desaintmartinlacaze, leo, pyvesdev, reckord
Version: unspecified   
Target Milestone: 1.7.2   
Hardware: All   
OS: All   
Whiteboard:

Description EPP Error Reports CLA 2018-06-30 02:00:26 EDT
The following problem was reported via the automated error reporting:

Message: Unhandled event loop exception
java.lang.NullPointerException: null
    at org.eclipse.epp.internal.mpc.ui.css.StyleHelper.applyStyles(StyleHelper.java:184)
    at org.eclipse.epp.internal.mpc.ui.wizards.CatalogSwitcher.refreshSelection(CatalogSwitcher.java:189)
    at org.eclipse.epp.internal.mpc.ui.wizards.CatalogSwitcher.setSelection(CatalogSwitcher.java:178)
    at org.eclipse.epp.internal.mpc.ui.wizards.MarketplacePage.createMarketplaceSwitcher(MarketplacePage.java:660)
    at org.eclipse.epp.internal.mpc.ui.wizards.MarketplacePage.createControl(MarketplacePage.java:261)
    at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:176)
    at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:682)
    at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:574)
    at org.eclipse.jface.window.Window.create(Window.java:426)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)
    at org.eclipse.jface.window.Window.open(Window.java:783)
    at org.eclipse.epp.internal.mpc.ui.commands.AbstractMarketplaceWizardCommand.openWizardDialog(AbstractMarketplaceWizardCommand.java:145)
    at org.eclipse.epp.internal.mpc.ui.commands.AbstractMarketplaceWizardCommand.execute(AbstractMarketplaceWizardCommand.java:72)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
    at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)


The reporter(s) left the following comment(s):

--- Anonymous wrote on 8bf4: ---
Happens when opening Marketplace while theming (General - appearance) is disabled. When theming is on, everything's fine.

--- Anonymous wrote on 3b42: ---
I received this when attempting to launch the Marketplace.

Bundles:
| org.eclipse.e4.core.di | 1.7.0.v20180427-1454 | 1.7.0.v20180427-1454 |
| org.eclipse.epp.mpc.ui | 1.7.0.v20180607-0001 | 1.7.1.v20180628-1155 |
| org.eclipse.epp.mpc.ui.css | 1.7.0.v20180606-2225 | 1.7.1.v20180628-1139 |
| org.eclipse.jface | 3.14.0.v20180423-0714 | 3.14.0.v20180423-0714 |
| org.eclipse.swt | 3.107.0.v20180529-0152 | 3.107.0.v20180611-0422 |
| org.eclipse.ui | 3.109.100.v20180426-0903 | 3.109.100.v20180426-0903 |

Operating Systems:
| Linux | 4.15.0 | 4.15.0 |
| MacOSX | 10.13.5 | 10.13.5 |
| Windows | 6.1.0 | 10.0.0 |


The above information is a snapshot of the collected data. Visit https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/5b1ab0ebe4b06c2730688bd8 for the latest data.

Thank you for your assistance.
 Your friendly error-reports-inbox.
Comment 1 EPP Error Reports CLA 2018-06-30 02:00:30 EDT
Set status to 'NEW' on behalf of automated action 'Auto-create bugs for reports with at least 5 reporters'.
Comment 2 Carsten Reckord CLA 2018-07-26 04:49:43 EDT
A fix is available on http://download.eclipse.org/mpc/nightly. I'll push a release update to http://download.eclipse.org/mpc/photon soon, just need to look at one other thing.

Please note that you have to install the update manually through "Help / Install New Software ..." due to the way the Eclipse packages are built.
Comment 3 Carsten Reckord CLA 2018-07-26 04:51:53 EDT
*** Bug 537397 has been marked as a duplicate of this bug. ***
Comment 4 Carsten Reckord CLA 2018-09-05 05:15:38 EDT
*** Bug 538059 has been marked as a duplicate of this bug. ***
Comment 5 Carsten Reckord CLA 2018-09-05 05:16:57 EDT
I will push out the final 1.7.2 release with this fix as soon as RC1 feedback for the Eclipse 2018-09 release is in without any blockers - so, roughly by the end of next week.
Comment 6 Carsten Reckord CLA 2018-09-18 08:44:22 EDT
1.7.2 has been released. 

Updates are available from
http://download.eclipse.org/mpc/photon
http://download.eclipse.org/mpc/2018-09

or directly from http://download.eclipse.org/mpc/releases/1.7.2
Comment 7 Carsten Reckord CLA 2018-09-18 08:44:53 EDT
*** Bug 537717 has been marked as a duplicate of this bug. ***
Comment 8 Carsten Reckord CLA 2019-02-12 11:14:30 EST
*** Bug 536561 has been marked as a duplicate of this bug. ***