This project is read-only.

Object reference not set to an instanceof an object - fixed after server reboot?

May 18, 2009 at 2:48 PM

I've got a nightly process that is running successfully most of the time, but last week it failed for one of the 5 zips the process makes. The failure makes itself known in RemoveTempFile, as evidenced by the stack trace below:

Object reference not set to an instanceof an object.

at Ionic.Zip.ZipFile.RemoveTempFile()
  at Ionic.Zip.ZipFile.CleanupAfterSaveOperation()
  at Ionic.Zip.ZipFile.Save()
  at Ionic.Zip.ZipFile.Save(String zipFileName)

Strangely, after a server reset it started working again.

Any ideas as to what might be causing this?

Thanks for your help.


May 19, 2009 at 1:26 AM

That method is very simple.  Looking at it, I don't see what the problem could be.  Would love to get a test case that reproduces the error.

May 19, 2009 at 5:25 PM

Well, I will let you know if I can get it to reliably reproduce. I have a feeling it must be some setting with this particular server at that particular time, but it would be nice to know what cases cause that.

I'll post more if I can find more info.

May 19, 2009 at 6:11 PM

Great, I will stay tuned.