remove warning from deserialize

This commit is contained in:
Ekaterina Tuzova
2017-04-06 14:54:32 +03:00
parent ec510abd3a
commit 79375c8c2a
@@ -180,6 +180,8 @@ public class StudyTaskManager implements PersistentStateComponent<Element>, Dumb
private void deserialize(Element state) throws StudySerializationUtils.StudyUnrecognizedFormatException {
final Element taskManagerElement = state.getChild(StudySerializationUtils.Xml.MAIN_ELEMENT);
if (taskManagerElement == null)
throw new StudySerializationUtils.StudyUnrecognizedFormatException();
XmlSerializer.deserializeInto(this, taskManagerElement);
final Element xmlCourse = StudySerializationUtils.Xml.getChildWithName(taskManagerElement, StudySerializationUtils.COURSE);
final Element remoteCourseElement = xmlCourse.getChild(REMOTE_COURSE);