gorbin / gorbin/ASNE

NullPointerException in SocialNetwork.<init>

Open
#52 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
877
Forks
225
PR merge metrics
No merged PRs in 30d

Description

I get a NullPoineterEcxeption when I try to instantiate a SocialNetwork.

```
VkSocialNetwork vk = new VkSocialNetwork(new Fragment(), VK_APP_ID, vkScope);
```

```
java.lang.NullPointerException
at com.github.gorbin.asne.core.SocialNetwork.(SocialNetwork.java:127)
at com.github.gorbin.asne.vk.VkSocialNetwork.(VkSocialNetwork.java:142)
```

Since I don't use any fragments in my app, I've created a separate class for working with ASNE, so I can't pass "this" as first parameter (like in your tutorial) and I've decided to just create a new Fragment. But it doesn't seem to work. I've also tried passing mSocialNetworkManager fragment as first parameter and got the same exception.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.