From: SourceForge.net <no...@so...> - 2006-02-12 14:03:41
|
Bugs item #1430091, was opened at 2006-02-12 15:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=1430091&group_id=27895 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: In-Memory Impl Group: TM4J 0.9.7 Status: Open Resolution: None Priority: 5 Submitted By: Thomas Much (thmuch) Assigned to: Nobody/Anonymous (nobody) Summary: AssociationImpl.getMembersOfRole crashes with NPE Initial Comment: ... if the association has no members at all. A fix is easy, we just need to check m_members at the beginning of the method: public Collection getMembersOfRole(Topic roleSpec) { if (m_members == null) { return java.util.Collections.EMPTY_SET; // or EMTPY_LIST? } // ... } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=391879&aid=1430091&group_id=27895 |