attachment for fileext catch null

This commit is contained in:
mrbesen 2021-01-18 21:42:31 +01:00
parent e0f531004f
commit a4a0b8e649
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 2 additions and 0 deletions

View File

@ -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);