Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Необработанное исключение типа "System.NullReferenceException" в VkNet.dll #11

Closed
artemkopan opened this issue Apr 25, 2014 · 4 comments
Labels
Ошибка В существующем функционале есть проблема

Comments

@artemkopan
Copy link

При вызове api.Messages.Get(MessageType.Sended, out value, count_mess, null, null, null, null, LastIdSended); получают такое вот исключение. Но не всегда, такое было 2 раза, зависимость не установил, к сожалению...

1

@OzieWest
Copy link

Аналогичная ошибка

VkResponse равен NUll и в итоге получаем NullReferenceException если в посте есть геолокация

тестовый запрос - api.Wall.Get(1563369, out _totalCount, 9);

валимся на:

place.Id = response["place_id"];

в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Model.Place.FromJson(VkResponse response)
в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Model.Geo.FromJson(VkResponse response)
в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Model.Post.FromJson(VkResponse response)
в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Utils.VkResponse.<op_Implicit>b__46(VkResponse a)
в System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() в System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
в System.Collections.Generic.List1..ctor(IEnumerable1 collection)
в VkNet.Utils.VkResponseEx.ToCollection[T](IEnumerable1 source) в VkNet.Utils.VkResponseEx.ToCollectionOf[T](VkResponse response, Func2 selector)
в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Model.Post.FromJson(VkResponse response)
в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Categories.WallCategory.b__1(VkResponse r)
в System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() в System.Collections.Generic.List1..ctor(IEnumerable1 collection) в VkNet.Utils.VkResponseEx.ToReadOnlyCollection[T](IEnumerable1 source)
в VkNet.Utils.VkResponseEx.ToReadOnlyCollectionOf[T](IEnumerable1 responses, Func2 selector)
в VkNet.Categories.WallCategory.Get(Int64 ownerId, Int32& totalCount, Nullable1 count, Nullable1 offset, WallFilter filter)


Другой вариант, на этот раз проблема в Attachments
тестовый запрос - api.Wall.Get(26033241, out _totalCount, 3);

валимся на:

document.Id = response["did"];

в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Model.Attachments.Document.FromJson(VkResponse response)
в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Model.Attachments.Attachment.FromJson(VkResponse response)
в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Utils.VkResponse.<op_Implicit>b__6(VkResponse a)
в System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() в System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
в System.Collections.Generic.List1..ctor(IEnumerable1 collection)
в VkNet.Utils.VkResponseEx.ToCollection[T](IEnumerable1 source) в VkNet.Utils.VkResponseEx.ToCollectionOf[T](VkResponse response, Func2 selector)
в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Model.Post.FromJson(VkResponse response)
в VkNet.Utils.VkResponse.op_Implicit(VkResponse response)
в VkNet.Categories.WallCategory.b__1(VkResponse r)
в System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() в System.Collections.Generic.List1..ctor(IEnumerable1 collection) в VkNet.Utils.VkResponseEx.ToReadOnlyCollection[T](IEnumerable1 source)
в VkNet.Utils.VkResponseEx.ToReadOnlyCollectionOf[T](IEnumerable1 responses, Func2 selector)
в VkNet.Categories.WallCategory.Get(Int64 ownerId, Int32& totalCount, Nullable1 count, Nullable1 offset, WallFilter filter)

@azhidkov azhidkov added the bug label Apr 28, 2014
@azhidkov
Copy link

Ошибка при разборе документа исправлена в 2c82efe

@azhidkov
Copy link

Ошибка с геолокацией исправлена в 4cdec17

@azhidkov
Copy link

Ошибки в этой ветке исправлены. Если появятся новые, то создайте их отдельными новыми задачами.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ошибка В существующем функционале есть проблема
Projects
None yet
Development

No branches or pull requests

3 participants