Open GoogleCodeExporter opened 9 years ago
To solve this issue should change the initializedIfRequired method and insert
the following code:
map = _applicationContext.getBeansOfType(PermissionFactory.class);
if (map.size() == 0) {
permissionFactory = new DefaultPermissionFactory();
} else if (map.size() == 1) {
permissionFactory = (PermissionFactory) map.values().iterator().next();
} else {
throw new UiException("Found incorrect number of PermissionFactory instances in application "
+ "context - you must have only have one!");
}
With this change no NullPointerException is throws and we can change the
DefaultPermissionFactory simply adding a new one to the applicationContext.
I Attach my modified SecurityUtilACL class.
Original comment by gesuino....@gmail.com
on 16 Apr 2011 at 2:10
Attachments:
Original issue reported on code.google.com by
gesuino....@gmail.com
on 10 Apr 2011 at 5:09