commit | 357cdb890f3f7d8f73fecba40312741e429d58b9 | [log] [tgz] |
---|---|---|
author | Stuart McCulloch <mcculls@gmail.com> | Wed Feb 18 17:36:58 2015 +0000 |
committer | Stuart McCulloch <mcculls@gmail.com> | Wed Feb 18 17:36:58 2015 +0000 |
tree | b68e9d4704dbc958de41006f7ac3c263674e8847 | |
parent | 3fcd6705ddabb5387ebb4ba9cef1cdd15cbc2cd9 [diff] |
Protect against null sources
diff --git a/org.eclipse.sisu.plexus/src/org/eclipse/sisu/plexus/RealmFilteredBeans.java b/org.eclipse.sisu.plexus/src/org/eclipse/sisu/plexus/RealmFilteredBeans.java index 70d78d0..69994f6 100644 --- a/org.eclipse.sisu.plexus/src/org/eclipse/sisu/plexus/RealmFilteredBeans.java +++ b/org.eclipse.sisu.plexus/src/org/eclipse/sisu/plexus/RealmFilteredBeans.java
@@ -96,7 +96,7 @@ while ( itr.hasNext() ) { nextBean = itr.next(); - final String source = nextBean.getSource().toString(); + final String source = String.valueOf( nextBean.getSource() ); if ( !source.startsWith( "ClassRealm" ) || realmNames.contains( source ) ) { return true;