mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
fix possible NullPointerException
This commit is contained in:
@@ -50,6 +50,7 @@ import sonia.scm.util.AssertUtil;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -158,7 +159,16 @@ public class RepositoryBrowserUtil extends CacheClearHook
|
|||||||
if (result == null)
|
if (result == null)
|
||||||
{
|
{
|
||||||
result = browser.getResult(revision, path);
|
result = browser.getResult(revision, path);
|
||||||
|
|
||||||
|
if (result != null)
|
||||||
|
{
|
||||||
sort(result);
|
sort(result);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = new BrowserResult();
|
||||||
|
}
|
||||||
|
|
||||||
cache.put(key, result);
|
cache.put(key, result);
|
||||||
}
|
}
|
||||||
else if (logger.isDebugEnabled())
|
else if (logger.isDebugEnabled())
|
||||||
|
|||||||
Reference in New Issue
Block a user