Fixed a NPE when selecting a related link to another item.

git-svn-id: https://svn.libreccm.org/ccm/trunk@4598 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2017-02-24 15:41:41 +00:00
parent 4a86f09147
commit c9c81352d0
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class RelatedLinkCaptionEditForm extends RelatedLinkCaptionForm {
RelatedLink link; RelatedLink link;
if (m_linkModel.isSelected(state)) { if (m_linkModel.isSelected(state)) {
link = (RelatedLink) m_linkModel.getSelectedLink(state); link = (RelatedLink) m_linkModel.getSelectedLink(state);
if (link.getTargetURI().equals("caption")) { if ("caption".equals(link.getTargetURI())) {
//make this form visible because we are editing and it is a caption not a link //make this form visible because we are editing and it is a caption not a link
setVisible(state, true); setVisible(state, true);
} }