Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-4
-
Fix Version/s: 1.0-beta-5
-
Component/s: PicoContainer (Java)
-
Labels:None
-
Number of attachments :
Description
If a bean has a dependency to a non registered component or an attribute that is not a component, a NullPointerException is thrown.
I have added a String attribute in the A inner class of the BeanComponentAdapterTestCase to show this issue.
Attached you find the enhanced TestCase and a patch for the BeanComponentAdapter class. (I've no CVS access so I can't make a real path as descriped in the documentation)
Mirko
Activity

Field | Original Value | New Value |
---|---|---|
Attachment | BeanComponentAdapter.java [ 11290 ] |

Attachment | BeanComponentAdapterTestCase.java [ 11291 ] |

Status | Open [ 1 ] | Closed [ 6 ] |
Fix Version/s | 1.0-beta-5 [ 10145 ] | |
Resolution | Fixed [ 1 ] | |
Assignee | Aslak Hellesoy [ rinkrank ] |
The patched BeanComponentAdapter class.