mirror of
https://github.com/apache/archiva.git
synced 2025-02-28 05:29:07 +00:00
[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 void execute( JobExecutionContext context )
|
||||
setJobDataMap( dataMap );
|
||||
|
||||
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();
|
||||
task.setName( context.getJobDetail().getName() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user