Skip to content
Snippets Groups Projects
Commit e1939edb authored by tpylak's avatar tpylak
Browse files

LMS-787 remove warnings

SVN: 10474
parent 60505d04
No related branches found
No related tags found
No related merge requests found
......@@ -111,9 +111,12 @@ public class VocabularyTermPE extends HibernateAbstractRegistrationHolder implem
public void setVocabulary(final VocabularyPE vocabulary)
{
if (vocabulary == null && getVocabulary() != null)
if (vocabulary == null)
{
getVocabulary().removeTerm(this);
if (getVocabulary() != null)
{
getVocabulary().removeTerm(this);
}
} else
{
vocabulary.addTerm(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment