| Summary: |
Illegal Argument exception when no project is selected in Profile Menu contribution |
| Product: |
[Yocto Project Subprojects] Eclipse Plugin
|
Reporter: |
Johann Draschwandtner <johann.draschwandtner> |
| Component: |
eclipse-plugin | Assignee: |
Jessica <jessica.zhang> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
Medium+
|
CC: |
ioanax.grigoropol, yp.ep.watcher, yp.watcher
|
| Version: |
1.5 | |
|
| Target Milestone: |
1.5.1 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
| Attachments: |
|
Created attachment 1573 [details] Proposed patch I've installed the yocto sdk profile in an eclipse based IDE that updates the menu handlers when opening a perspective. When there is no project yet created or no project selected an Illegal Argument exception is thrown. Relevant code is found in: ProjectSpecificContributionItem and TargetProfileContributionItem of package org.yocto.sdk.ide. The assumption that the selection will always contain a Project is not correct, therfore a simple check for null will fix the issue. Please refer to the proposed patch attached.