Buxfix when no sharing is set in the selector factory

Null pointer exception thrown in selector factory when no sharing mode was set in the application.
This commit is contained in:
Wim Velzeboer
2021-07-08 14:05:37 +01:00
parent ef2beb387f
commit 2806f63b95
@@ -30,7 +30,18 @@
*/
public abstract class fflib_DynamicAppFactory
{
protected fflib_SharingMode sharingMode;
protected fflib_SharingMode sharingMode
{
get
{
if (sharingMode == null)
{
sharingMode = fflib_SharingMode.WithSharing;
}
return sharingMode;
}
set;
}
protected fflib_IAppBindingResolver resolver;
protected Map<System.Type, System.Type> routes;