Skip to content

Commit

Permalink
fixed crash with manually created tasks (Recording.macAddress null)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig committed Dec 1, 2014
1 parent 50471f9 commit 4ccb60b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/iiitd/mc/timetracker/data/Recording.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Recording
private Date start;
private Date end;
private Task task;
private String macAddress;
private String macAddress = "";


/**
Expand Down Expand Up @@ -131,7 +131,10 @@ public String getMacAddress() {
* @param macAddress the macAddress to set
*/
public void setMacAddress(String macAddress) {
this.macAddress = macAddress;
if(macAddress == null)
this.macAddress = "";
else
this.macAddress = macAddress;
}

/**
Expand Down

0 comments on commit 4ccb60b

Please sign in to comment.