GetSession NullReferenceException

Jun 18, 2010 at 1:30 PM
Edited Jun 18, 2010 at 1:33 PM

ConnectSession connectSession = new ConnectSession("df7acaedd7....", "9fb8682caf5.....");
connectSession.UserId = 100001.....;
       
Facebook.Rest.Auth auth = new Facebook.Rest.Auth(connectSession);
connectSession.Login();
auth.GetSession("S....");
auth.GetSessionAsync("S....", getSessionCallback, new object());

GetSession throws NullReferenceException, but GetSessionAsync not.

Facebook.Rest.RestBase.SendRequestSynchronous(IDictionary`2 parameterDictionary, Boolean useSession) +173  
Facebook.Rest.RestBase.SendRequest(IDictionary`2 parameterDictionary, Boolean useSession) +53  
Facebook.Rest.Auth.GetSession(String auth_token, Boolean isAsync, GetSessionCallback callback, Object state) +199  
Facebook.Rest.Auth.GetSession(String auth_token) +43

I see at Source. RestBase.SendRequestSynchronous dont verifies if Permissions is null before use.
And i cant set Permission at Auth object, because set is internal......