Re: NullReferenceException



Hey,

On 3/26/07, Stephan Hegel <stephan hegel gmx de> wrote:
I've patched the method as described above and there are a lot of of 1,2,3,
4.5 and 6 console printouts but at the end the of the logs it looks like
this:

... (tons of returning null) ...
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: returning null
2007-03-26 17:52:10: Debug: IndexWorker Done
2007-03-26 17:52:10: Warn: Exception caught while executing :Void IndexWorker()
2007-03-26 17:52:10: System.NullReferenceException: Object reference not set to an instance of an object
2007-03-26 17:52:10: at Beagle.Daemon.BuildIndex.FileToIndexable (System.IO.FileInfo file) [0x00000]
2007-03-26 17:52:10: at Beagle.Daemon.BuildIndex.IndexWorker () [0x00000]
2007-03-26 17:52:10: at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
2007-03-26 17:52:10: at Beagle.Util.ExceptionHandlingThread.ThreadStarted () [0x00000]
2007-03-26 17:52:12: Debug: Size: VmRSS=36.0 MB, size=3.38, 47.6%
2007-03-26 17:52:15: Debug: Size: VmRSS=43.4 MB, size=4.08, 61.5%
2007-03-26 17:52:18: Debug: Scanned 77711 files and directories in 6036 directories
2007-03-26 17:52:18: Debug: CrawlWorker Done
2007-03-26 17:52:18: Debug: Elapsed time 24.92s.

Weird, this doesn't help at all!

Can you try changing this code:

	else
		indexable = FileToIndexable ((FileInfo) file_or_dir_info);

inside IndexWorker() to this:

	else {
		Console.WriteLine ("file: {0}", (FileInfo) file_or_dir_info);
		indexable = FileToIndexable ((FileInfo) file_or_dir_info);
	}

And give it another try?

Thanks,
Joe



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]