| Summary: | [content assist] Potential NPE below CompletionProposalPopup.computeProposals if no proposals possible | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Andreas Sewe <sewe> |
| Component: | Text | Assignee: | Dani Megert <daniel_megert> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bruno.do.medeiros, daniel_megert, noopur_gupta |
| Version: | 4.7 | Flags: | noopur_gupta:
review+
|
| Target Milestone: | 4.6.1 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=499653 | ||
| Whiteboard: | |||
|
Description
Andreas Sewe
FWIW, this problem does occur in the wild: <https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/56cc3d63e4b0d4f494e6a3c3> (In reply to Andreas Sewe from comment #1) > FWIW, this problem does occur in the wild: > <https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/ > 56cc3d63e4b0d4f494e6a3c3> There are also other problems recorded by the automated error reporting that are a probably duplicates [1] of the aforementioned problem [2], in case anyone wants more information about the possible calling contexts in which this NPE is thrown. Hope this helps. [1] <https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/?c:!((t:root-exception,val:java.lang.NullPointerException),(t:stacktrace-class,val:java.util.Arrays.sort,sc:ANY),(t:stacktrace-class,val:org.eclipse.jface.text.contentassist.CompletionProposalPopup.sortProposals,sc:ANY)),sort:!((prop:modifiedOn,dir:DESCENDING))> [2] <https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/56cc3d63e4b0d4f494e6a3c3> Fixed part 2 with http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=44d03aad38b002ebb13e47f0c67e74e2090ca598 (In reply to Dani Megert from comment #3) > Fixed with > http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/ > ?id=23e01242dfe21800d196e8d805735cd4a23f2f96 (In reply to Dani Megert from comment #4) > Fixed part 2 with > http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/ > ?id=44d03aad38b002ebb13e47f0c67e74e2090ca598 Thanks for the quick response, Dani. We should backport this fix. It's a regression due to the sorting code we added. Noopur, please review my fix in master. Looks good. +1 for 4.6.1. Fixed in R4_6_maintenance with http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=c64babf28a88c4b1d504c1fca1e1f27aab766bca *** Bug 500154 has been marked as a duplicate of this bug. *** Verified in M20160824-0059 through code inspection. |