From e1a18ba96ff546ebf8406e3e5db1718964c52c79 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Mon, 13 Aug 2007 17:42:40 +0000 Subject: [PATCH] [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 --- .../org/apache/maven/archiva/scheduled/DatabaseTaskJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java b/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java index 6f6a7043d..ede35a8f6 100644 --- a/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java +++ b/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java @@ -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() );