Bug #4503
Suggest Similar Components gives an error
0%
Description
If I right click on an actor on canvas and select Suggest => Similar Components, I get an NPE. This happens in the kepler and wrp suites.
java.lang.NullPointerException
at org.kepler.objectmanager.ActorMetadata.getActorAsNamedObj(ActorMetadata.java:693)
at org.kepler.gui.GraphicalActorMetadata.<init>(GraphicalActorMetadata.java:72)
at org.kepler.sms.gui.SuggestCompatibleOperation._getComponents(SuggestCompatibleOperation.java:333)
at org.kepler.sms.gui.SuggestCompatibleOperation._buildSimilarComponents(SuggestCompatibleOperation.java:301)
at org.kepler.sms.gui.SuggestCompatibleOperation._searchForComponents(SuggestCompatibleOperation.java:219)
at org.kepler.sms.gui.SuggestCompatibleOperation._suggestComponents(SuggestCompatibleOperation.java:174)
at org.kepler.sms.gui.SuggestCompatibleOperation.<init>(SuggestCompatibleOperation.java:103)
at org.kepler.sms.gui.SuggestSimilarComponentsAction.actionPerformed(SuggestSimilarComponentsAction.java:75)
History
#1 Updated by Chad Berkley over 12 years ago
Maybe we should disable this feature for 2.0? Was it in 1.0?
#2 Updated by Derik Barseghian over 12 years ago
fixed in r22883
this had changed to a ClassCastException when trying to do a "Suggest..." within the wrp suite which can have a library that includes items that can't be cast to ActorCacheObject. Just added a try block around the attempted cast.
#3 Updated by Redmine Admin over 9 years ago
Original Bugzilla ID was 4503