diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 05624d1f527..81cc47ee323 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -139,8 +139,8 @@ Format: `add-image INDEX ai/[PATH-TO-IMAGE]` Examples: -* `list` followed by `add-image 2 C:/Users/user/Downloads/weekiat.png` adds the image `weekiat.png` to the 2nd person -in the address book +* `list` followed by `add-image 2 ai/C:/Users/user/Downloads/weekiat.png` adds the image `weekiat.png` to the 2nd person in the address book + ### Delete an Image for contacts diff --git a/src/main/java/seedu/address/model/tag/Tag.java b/src/main/java/seedu/address/model/tag/Tag.java index 6ded08347fb..1ebb95099ed 100644 --- a/src/main/java/seedu/address/model/tag/Tag.java +++ b/src/main/java/seedu/address/model/tag/Tag.java @@ -34,6 +34,7 @@ public static boolean isValidTagName(String test) { } public String getTagName() { + assert tagName != null : "Tag object with null tagName!"; String[] splitTag = this.tagName.split("XXXXX"); if (splitTag.length == 1) { return splitTag[0];