Skip to content

Commit

Permalink
Update UidGenerator.java
Browse files Browse the repository at this point in the history
  • Loading branch information
stonio committed Jan 10, 2017
1 parent bb2f5b6 commit 97d6afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/fortuna/ical4j/util/UidGenerator.java
Expand Up @@ -77,7 +77,7 @@ public Uid generateUid() {
b.append(uniqueTimestamp());
b.append('-');
b.append(pid);
if (hostInfo != null) {
if (hostInfo != null && hostInfo.getHostName() != null) {
b.append('@');
b.append(hostInfo.getHostName());
}
Expand Down

0 comments on commit 97d6afb

Please sign in to comment.