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-94f89814c4dfmaster
parent
4a86f09147
commit
c9c81352d0
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue