Browse Source

really add attack record on parceled sync rec

Julien Clauter 9 years ago
parent
commit
88b005a5b0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/de/tudarmstadt/informatik/hostage/logging/SyncRecord.java

+ 4 - 1
src/de/tudarmstadt/informatik/hostage/logging/SyncRecord.java

@@ -93,8 +93,11 @@ public class SyncRecord implements Parcelable, Serializable {
 
         this.messageRecords = source.readArrayList(MessageRecord.class.getClassLoader());
 
+
+        this.attackRecord = null;
+        AttackRecord attack= this.getAttackRecord();
+
         if (messageRecords != null){
-            AttackRecord attack= this.getAttackRecord();
             for (MessageRecord messageRecord : this.messageRecords){
                 messageRecord.setAttack_id(attack.getAttack_id());
             }