ashukhobragade / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

Incorrect exception thrown #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set the user credentials to be null or empty for the username and pass 
in a password on the service.
2. Try and insert a new album
3. Object reference exception thrown

What is the expected output? What do you see instead?
I would expect to see an invalid credentials exception.  Instead I get 
this:
System.NullReferenceException was caught
  Message="Object reference not set to an instance of an object."
  Source="Google.GData.Client"
  StackTrace:
       at Google.GData.Client.Utilities.UriEncodeReserved(String content)
       at Google.GData.Client.GDataGAuthRequest.QueryAuthToken
(GDataCredentials gc)
       at Google.GData.Client.GDataGAuthRequest.EnsureCredentials()
       at Google.GData.Client.GDataRequest.EnsureWebRequest()
       at Google.GData.Client.GDataGAuthRequest.CopyRequestData()
       at Google.GData.Client.GDataGAuthRequest.Execute(Int32 iRetrying)
       at Google.GData.Client.GDataGAuthRequest.Execute()
       at Google.GData.Client.Service.StreamInsert(Uri feedUri, AtomBase 
baseEntry, GDataRequestType type)
       at Google.GData.Client.Service.StreamInsert(Uri feedUri, AtomEntry 
newEntry)
       at Google.GData.Client.Service.Insert(Uri feedUri, AtomEntry 
newEntry)

What version of the product are you using? On what operating system?
The latest version, Vista Ultimate 64.

Please provide any additional information below.
I'm not absolutely positive of what produced the invalid exception, but 
this is what I had discovered.  I should have checked for those things 
first, but was surprised when I got the object reference exception.

Original issue reported on code.google.com by balcom...@hotmail.com on 7 Feb 2008 at 3:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I got this on the wrong project - sorry!  It has now been put in to the right 
project.  Delete this at your leisure.

Original comment by balcom...@hotmail.com on 7 Feb 2008 at 3:26

GoogleCodeExporter commented 9 years ago

Original comment by gregrobbins on 7 Feb 2008 at 6:33