arachnode.net
An Open Source C# web crawler with Lucene.NET search using SQL Server 2008/2012/2014/2016/CE An Open Source C# web crawler with Lucene.NET search using MongoDB/RavenDB/Hadoop

Completely Open Source @ GitHub

Does arachnode.net scale? | Download the latest release

NullReferenceException in EXIF Extractor

rated by 0 users
Answered (Verified) This post has 1 verified answer | 5 Replies | 2 Followers

Top 75 Contributor
6 Posts
Erick Thompson posted on Mon, May 3 2010 10:30 PM

While parsing MSN, I have run into a number (>10) of situations where the EXIF Extractor throws a NullRef Exception. In the buildDB private method, the NRE occurs in the following statement

//1 = BYTE An 8-bit unsigned integer.,
if
(p.Type == 0x1)
  v = p.Value[0].ToString();
}

The problem is that p.Value is null. I am currently ignoring the error, but I hate making random changes to a project.

Thanks,
Erick

 

Answered (Verified) Verified Answer

Top 10 Contributor
1,905 Posts

Fixed and checked into SVN.

For best service when you require assistance:

  1. Check the DisallowedAbsoluteUris and Exceptions tables first.
  2. Cut and paste actual exceptions from the Exceptions table.
  3. Include screenshots.

Skype: arachnodedotnet

All Replies

Top 10 Contributor
1,905 Posts

What is the AbsoluteUri of the Image that throws the NRE?  I will fix it.

For best service when you require assistance:

  1. Check the DisallowedAbsoluteUris and Exceptions tables first.
  2. Cut and paste actual exceptions from the Exceptions table.
  3. Include screenshots.

Skype: arachnodedotnet

Top 75 Contributor
6 Posts

It would appear that the following Uri is one of the problem ones.

http://content5.catalog.photos.msn.com/ft/share0/866b/0/8303e841-4844-47c6-a8e5-0f05b4555b0a_Thumb_115752_1820005606_75.jpg

Let me know if you can't find the problem, and I'll find another Uri that has the bad EXIF data.

Thanks,
Erick

PS Is there a source control server that I can get the latest version from?

Top 10 Contributor
1,905 Posts

OK, I will take a look.

I don't see you as a licensed user.  The SVN location/creds are available to licensed users.

For best service when you require assistance:

  1. Check the DisallowedAbsoluteUris and Exceptions tables first.
  2. Cut and paste actual exceptions from the Exceptions table.
  3. Include screenshots.

Skype: arachnodedotnet

Top 10 Contributor
1,905 Posts

Fixed and checked into SVN.

For best service when you require assistance:

  1. Check the DisallowedAbsoluteUris and Exceptions tables first.
  2. Cut and paste actual exceptions from the Exceptions table.
  3. Include screenshots.

Skype: arachnodedotnet

Top 75 Contributor
6 Posts

That makes sense. I'm still evaluating AN, but it looks great so far. I have a couple of questions - is there an email I can directly contact you at?

Thanks,
Erick

Page 1 of 1 (6 items) | RSS
An Open Source C# web crawler with Lucene.NET search using SQL 2008/2012/CE

copyright 2004-2017, arachnode.net LLC