In Aspose.Email for Java if you try to load a MailMessage via the com.aspose.email.MailMessage#load(java.lang.String, com.aspose.email.LoadOptions) method for a message that contains a 0 byte file as an attachment it fails to load with this exception:
class com.aspose.email.system.exceptions.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
com.aspose.email.baq.(SourceFile:398)
com.aspose.email.bai.a(SourceFile:1652)
com.aspose.email.bai.d(SourceFile:1999)
com.aspose.email.bai.a(SourceFile:1483)
com.aspose.email.bai.(SourceFile:120)
com.aspose.email.afb.c(SourceFile:290)
com.aspose.email.MailMessage.a(SourceFile:1479)
com.aspose.email.MailMessage.b(SourceFile:1361)
com.aspose.email.MailMessage.load(SourceFile:1309)
I have attached an example file Test Email for 0 byte files attached.zip (25.4 KB)