Menu

#328 NullReferenceException while reading MPP file from a .Net application

v1.0_(example)
closed
Jon Iles
None
5
2018-06-12
2018-06-08
No

Hi,

I am trying to read a MPP file using following code

ProjectReader reader = ProjectReaderUtility.getProjectReader(filePath);
ProjectFile file = reader.read(filePath);

And

MPPReader reader = new MPPReader();
ProjectFile project = reader.read(filePath);

I am getting an NullReferenceException in second line for both code setup, and I can see reader and filePath both are not null.

Please help me to resolve the issue.

Warm Regards,
Debiprasanna Mishra
debi05@ymail.com

Discussion

  • Jon Iles

    Jon Iles - 2018-06-08

    Hi, thanks for the report. Can you send me a sample MPP file please? Thanks!

     
  • Debiprasanna Mishra

    Hi Jon IIes,

    Please find attached MPP file for which I am getting the exception.

    Warm Regards,
    Debiprasanna Mishra
    debi05@ymail.com

     
  • Jon Iles

    Jon Iles - 2018-06-11

    This works for me with the latest code on GitHub. Can you try your code with the latest release version of MPXJ (7.4.4)? Thanks!

     
  • Debiprasanna Mishra

    True. For the version of MPXJ (7.4.4) I am also not getting any exception.

    Thank you very much,
    Debiprasanna

     
  • Jon Iles

    Jon Iles - 2018-06-12
    • status: open --> closed
    • assigned_to: Jon Iles
     

Log in to post a comment.

MongoDB Logo MongoDB