Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Mar 30, 2011
@chechu New release 47d5640
Commits on Apr 05, 2011
@karottenreibe karottenreibe fixed sporadic NullPointerExceptions in the filter when writing directly
to the facebook hash in the session
05f1334
Commits on Apr 06, 2011
@chechu Merge branch 'npe_fix' of https://github.com/karottenreibe/grails-fac…
…ebook-graph into karottenreibe-npe_fix
789f15b
View
2  FacebookGraphGrailsPlugin.groovy
@@ -1,6 +1,6 @@
class FacebookGraphGrailsPlugin {
// the plugin version
- def version = "0.10"
+ def version = "0.11"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "1.3.3 > *"
// the other plugins this plugin depends on
View
7 grails-app/conf/FacebookGraphFilters.groovy
@@ -20,14 +20,15 @@ class FacebookGraphFilters {
session.facebook = [:] // Without cookie we remove the session data
if(cookie) {
+ def facebook = [:] // Don't write to session directly as that may cause NullPointerExceptions
cookie.value.split("&").each{
pair = it.split("=")
- session.facebook[pair[0]] = pair[1].decodeURL()
+ facebook[pair[0]] = pair[1].decodeURL()
}
- session.facebook = facebookGraphService.validateSession(session.facebook)
+ session.facebook = facebookGraphService.validateSession(facebook)
}
}
}
}
-}
+}

No commit comments for this range

Something went wrong with that request. Please try again.