diff --git a/source/org/jivesoftware/smackx/provider/DelayInformationProvider.java b/source/org/jivesoftware/smackx/provider/DelayInformationProvider.java index 77bf6114f..43ad8ab38 100644 --- a/source/org/jivesoftware/smackx/provider/DelayInformationProvider.java +++ b/source/org/jivesoftware/smackx/provider/DelayInformationProvider.java @@ -65,7 +65,7 @@ public class DelayInformationProvider implements PacketExtensionProvider { * DelayInformation API specifies that null should be returned in that * case. */ - reason = reason.isEmpty() ? null : reason; + reason = "".equals(reason) ? null : reason; delayInformation.setReason(reason); return delayInformation;