exception.zip (3.8 MB)
when I create a Aspose.Slides.Presention object and input this file as parameters, throw an exception.
System.NullReferenceException:未将对象引用设置到对象的实例
Here is my code:
try
{
ppt = new Aspose.Slides.Presentation(filePath);
}
catch(Exception ex)
{
string str = "{\"status\":\"1\",\"msg\":\"file_corrupt\"}";
throw new Exception(str);
}