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

Jumblr getType on a Post returns null #60

Closed
KevinTCoughlin opened this issue May 16, 2015 · 0 comments · Fixed by #61
Closed

Jumblr getType on a Post returns null #60

KevinTCoughlin opened this issue May 16, 2015 · 0 comments · Fixed by #61
Labels

Comments

@KevinTCoughlin
Copy link
Contributor

Jumblr returns null instead of the correct type String when calling getType on a Post object. This is because the type string is hardcoded in a details HashMap per Post type. The type should be set on each Post type and be returned correctly to callers.

final TextPost post = client.newPost(blogName, TextPost.class);
post.getType()
// -> null instead of 'text'

The above code should return text

Brought to my attention in this thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant