prevent possible NPE

This commit is contained in:
olivier lamy 2013-01-31 23:02:19 +01:00
parent 176a85f43c
commit 6c3ec90f2c
1 changed files with 6 additions and 0 deletions

View File

@ -313,6 +313,12 @@ public class DefaultVersionResolver
{
Versioning versioning = null;
if (metadata == null)
{
return new Versioning();
}
SyncContext syncContext = syncContextFactory.newInstance( session, true );
try