What steps will reproduce the problem?
Follow steps in
http://code.google.com/p/vaadin-appfoundation/wiki/Authorization:
// Initialize the PermissionManager, this should usually be done in the
application's init method
Permissions.initialize(application, new MemoryPermissionManager());
Role visitors = getVisitorRole();
Role regUsers = getRegisteredUsersRole();
Resource newsFeedView = getNewsFeedView();
Permissions.allow(visitors, "read", newsFeedView);
==> Cause NullPointerException as instance.get() return null.
Workaround: set Permissions instance in constructor
public Permissions(Application application, PermissionManager manager) {
...
instance.set(this);
}
Original issue reported on code.google.com by gwtdevel...@gmail.com on 2 Jun 2010 at 3:53
Original issue reported on code.google.com by
gwtdevel...@gmail.com
on 2 Jun 2010 at 3:53