| Summary: | java.lang.IllegalArgumentException: Argument '???' is null. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Andreas Kaluza <andreas> | ||||||
| Component: | Recommenders | Assignee: | Marcel Bruch <marcel.bruch> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Andreas Kaluza
Created attachment 191478 [details]
before refreshing view
See the attachment. If I refresh the view (F5), I'll get an exception like above. Created attachment 191479 [details]
After refreshing
It seems that
cu.findPrimaryType actually sometimes returns null. I expected that a primary type is always available. Did the type compile properly?
Anyway, I added null check in builder to get around this issue in future:
final IType primaryType = cu.findPrimaryType();
if (primaryType != null) {
lcha.remove(javaElementResolver.toRecType(primaryType));
}
Closing this issue. Please give latest dev build (v0.5) a try: http://download.eclipse.org/recommenders/updates/dev/e37/ http://download.eclipse.org/recommenders/updates/dev/e42/ Closing this issue. Please give latest dev build (v0.5) a try: http://download.eclipse.org/recommenders/updates/dev/e37/ http://download.eclipse.org/recommenders/updates/dev/e42/ |