Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unhandled event loop exception when binary parser is not in plugi…
…n.xml If a .cproject references a binary parser ID that is not in the plug-in XML, or in the XML, but marked as private, the UI cannot display the binary parsers and was raising an ArrayIndexOutOfBoundsException as below. This fix rewrites the array handling using collections. ```java !ENTRY org.eclipse.ui 4 0 2022-11-04 09:44:27.409 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.ArrayIndexOutOfBoundsException: Index 7 out of bounds for length 7 at org.eclipse.cdt.ui.newui.BinaryParsTab.updateData(BinaryParsTab.java:253) at org.eclipse.cdt.ui.newui.AbstractCPropertyTab.setVisible(AbstractCPropertyTab.java:253) at org.eclipse.cdt.ui.newui.BinaryParsTab.setVisible(BinaryParsTab.java:221) at org.eclipse.cdt.ui.newui.AbstractCPropertyTab.handleTabEvent(AbstractCPropertyTab.java:630) at org.eclipse.cdt.ui.newui.AbstractPage.updateSelectedTab(AbstractPage.java:412) at org.eclipse.cdt.ui.newui.AbstractPage$4.widgetSelected(AbstractPage.java:382) ```
- Loading branch information