fix deserialization of new local courses
authorLiana.Bakradze <liana.bakradze@jetbrains.com>
Fri, 11 Nov 2016 14:55:12 +0000 (17:55 +0300)
committerliana.bakradze <liana.bakradze@jetbrains.com>
Thu, 17 Nov 2016 14:08:44 +0000 (17:08 +0300)
python/educational-core/student/src/com/jetbrains/edu/learning/StudySerializationUtils.java

index c7cb4f83c86ae78e96238ef6434543b5292d8830..076d3ef73b76ffb5bc0b53d1b8a376605d033f3b 100644 (file)
@@ -429,7 +429,9 @@ public class StudySerializationUtils {
               JsonArray placeholders = taskFileObject.getAsJsonArray(PLACEHOLDERS);
               for (JsonElement placeholder : placeholders) {
                 convertToAbsoluteOffset(document, placeholder);
-                convertToSubtaskInfo(placeholder.getAsJsonObject());
+                if (placeholder.getAsJsonObject().getAsJsonObject(SUBTASK_INFOS) == null) {
+                  convertToSubtaskInfo(placeholder.getAsJsonObject());
+                }
               }
             }
           }