[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:
Joakim Erdfelt 2007-08-13 17:42:40 +00:00
parent 56384cdeab
commit e1a18ba96f
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class DatabaseTaskJob
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() );