add judgement to avoid NULL pointer's operation(segmentaion fault)
Attach a file by drag & drop or click to upload