diff options
author | Joakim Erdfelt <joakime@apache.org> | 2007-08-13 17:42:40 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2007-08-13 17:42:40 +0000 |
commit | e1a18ba96ff546ebf8406e3e5db1718964c52c79 (patch) | |
tree | 1b53e4bda962dce6175dcf012fba61e500276c1a /archiva-scheduled | |
parent | 56384cdeab8ae8871e0d7efec1b0afff6a117eda (diff) | |
download | archiva-e1a18ba96ff546ebf8406e3e5db1718964c52c79.tar.gz archiva-e1a18ba96ff546ebf8406e3e5db1718964c52c79.zip |
[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
Diffstat (limited to 'archiva-scheduled')
-rw-r--r-- | archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/DatabaseTaskJob.java | 2 |
1 files changed, 1 insertions, 1 deletions
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() ); |