Project

General

Profile

Actions

Bug #4503

closed

Suggest Similar Components gives an error

Added by Derik Barseghian about 15 years ago. Updated almost 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
semantics
Target version:
Start date:
10/27/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4503

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)

Actions #1

Updated by Chad Berkley almost 15 years ago

Maybe we should disable this feature for 2.0? Was it in 1.0?

Actions #2

Updated by Derik Barseghian almost 15 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.

Actions #3

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 4503

Actions

Also available in: Atom PDF