From 4ccff8230e5c5514c961deb01c96f6dfadd903c3 Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Mon, 20 Feb 2006 16:40:53 +0000 Subject: [PATCH] Detection of missing patch description (potential cause of AR-440) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2453 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/repo/admin/patch/PatchServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/repo/admin/patch/PatchServiceImpl.java b/source/java/org/alfresco/repo/admin/patch/PatchServiceImpl.java index 78b5895cfa..9fc862f487 100644 --- a/source/java/org/alfresco/repo/admin/patch/PatchServiceImpl.java +++ b/source/java/org/alfresco/repo/admin/patch/PatchServiceImpl.java @@ -202,7 +202,13 @@ public class PatchServiceImpl implements PatchService appliedPatch = patchDaoService.newAppliedPatch(patch.getId()); } // fill in the record's details - appliedPatch.setDescription(I18NUtil.getMessage(patch.getDescription())); + String patchDescription = I18NUtil.getMessage(patch.getDescription()); + if (patchDescription == null) + { + logger.warn("Patch description is not available: " + patch); + patchDescription = "No patch description available"; + } + appliedPatch.setDescription(patchDescription); appliedPatch.setFixesFromSchema(patch.getFixesFromSchema()); appliedPatch.setFixesToSchema(patch.getFixesToSchema()); appliedPatch.setTargetSchema(patch.getTargetSchema()); // the schema the server is expecting