attachment for fileext catch null
This commit is contained in:
parent
e0f531004f
commit
a4a0b8e649
|
@ -283,6 +283,8 @@ public class MessageBuilder {
|
|||
Animation;
|
||||
|
||||
public static Attachment getForFileExt(String extention) {
|
||||
if(extention == null) return Document;
|
||||
|
||||
if(extention.startsWith("."))
|
||||
extention = extention.substring(1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue