Community
Participate
Working Groups
If a catalog does not specify a description an exception is logged. java.lang.IllegalArgumentException: Argument cannot be null at org.eclipse.swt.SWT.error(SWT.java:4258) at org.eclipse.swt.SWT.error(SWT.java:4192) at org.eclipse.swt.SWT.error(SWT.java:4163) at org.eclipse.swt.widgets.Widget.error(Widget.java:466) at org.eclipse.swt.widgets.Label.setText(Label.java:573) at org.eclipse.epp.internal.mpc.ui.wizards.CatalogToolTip.createDescription(CatalogToolTip.java:73) at org.eclipse.epp.internal.mpc.ui.wizards.CatalogToolTip.createToolTipArea(CatalogToolTip.java:65) at org.eclipse.equinox.internal.p2.ui.discovery.util.GradientToolTip.createToolTipContentArea(GradientToolTip.java:57) at org.eclipse.jface.window.ToolTip.toolTipShow(ToolTip.java:359) at org.eclipse.jface.window.ToolTip.toolTipOpen(ToolTip.java:483) at org.eclipse.jface.window.ToolTip.toolTipCreate(ToolTip.java:348) at org.eclipse.jface.window.ToolTip.access$2(ToolTip.java:342) at org.eclipse.jface.window.ToolTip$ToolTipOwnerControlListener.handleEvent(ToolTip.java:631)
Created attachment 192853 [details] patch Improved error handling for option attribute (icon and description). Will commit once I have commit rights.
Created attachment 192854 [details] noiconprovided32.png .
Created attachment 192855 [details] mylyn/context/zip
Pushed more robust implementation to master, added fallback icon in case a marketplace doesn't provide an icon.