mirror of https://github.com/apache/archiva.git
[MRM-467] 500 error when user requested the dependency tree for artifact.
Adjusting to prevent NPE. Root cause of NPE not addressed, see MRM-466 for details. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@565453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56384cdeab
commit
e1a18ba96f
|
@ -54,7 +54,7 @@ public class DatabaseTaskJob
|
||||||
setJobDataMap( dataMap );
|
setJobDataMap( dataMap );
|
||||||
|
|
||||||
TaskQueue taskQueue = (TaskQueue) dataMap.get( TASK_QUEUE );
|
TaskQueue taskQueue = (TaskQueue) dataMap.get( TASK_QUEUE );
|
||||||
String queuePolicy = dataMap.get( TASK_QUEUE_POLICY ).toString();
|
String queuePolicy = (String) dataMap.get( TASK_QUEUE_POLICY );
|
||||||
|
|
||||||
ArchivaTask task = new DatabaseTask();
|
ArchivaTask task = new DatabaseTask();
|
||||||
task.setName( context.getJobDetail().getName() );
|
task.setName( context.getJobDetail().getName() );
|
||||||
|
|
Loading…
Reference in New Issue