| Summary: | Nullpointer Whilde working with GEF | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Srinivasa Reddy Challa <challa.srinivasareddy> |
| Component: | GEF-Legacy GEF (MVC) | Assignee: | Anthony Hunter <ahunter.eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ahunter.eclipse, Michael_Rennie |
| Version: | 3.4 | ||
| Target Milestone: | 3.5.0 (Galileo) M5 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Srinivasa Reddy Challa
(In reply to comment #0) > > But NullPointer exceptions should be easy to figure out > Please provide the exact steps to reproduce the exception. I need it reproduced in an example to debug the problem. Looks to me like the NPE is in your CreateRequest command, rather than GEF. The drop is asking for the new object and you are returning null. Hi Anthony, I using some free tool that works with GEF, i am not sure of coding of the free tool. From your API point of view you can check for the Null argument and thow InvalidArgumetnException with proper exception message and close the BUG Thanks Challa OK, added the requested code:
if (getFactory() == null) {
throw new IllegalArgumentException(
"CreateRequest has unspecified CreationFactory"); //$NON-NLS-1$
}
Committed to HEAD
|