|
|
Choosing A Webhost: |
svn commit: r519884 - /lenya/trunk/src/modules-core/sitemanagement/java/src: msg#00008cms.lenya.cvs
Author: andreas Date: Mon Mar 19 02:31:47 2007 New Revision: 519884 URL: http://svn.apache.org/viewvc?view=rev&rev=519884 Log: Paste: check if source doc is null. This fixes bug 41850. Thanks to Richard Frovarp for the patch. Modified: lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Paste.java Modified: lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Paste.java URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Paste.java?view=diff&rev=519884&r1=519883&r2=519884 ============================================================================== --- lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Paste.java (original) +++ lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Paste.java Mon Mar 19 02:31:47 2007 @@ -69,6 +69,10 @@ Clipboard clipboard = new ClipboardHelper().getClipboard(getContext()); if (clipboard != null) { + if(getSourceDocument() == null) { + addErrorMessage("No source document"); + return; + } String label; try { Publication pub = getSourceDocument().getPublication(); @@ -162,4 +166,4 @@ return SiteUtil.getAvailableLocator(this.manager, getDocumentFactory(), potentialLoc) .getPath(); } -} \ No newline at end of file +}
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r519883 - /lenya/trunk/src/modules/fckeditor/sitemap.xmap, andreas |
|---|---|
| Next by Date: | svn commit: r519886 - /lenya/trunk/src/modules/resource/java/src/org/apache/lenya/cms/site/usecases/CreateResource.java, andreas |
| Previous by Thread: | svn commit: r519883 - /lenya/trunk/src/modules/fckeditor/sitemap.xmap, andreas |
| Next by Thread: | svn commit: r519886 - /lenya/trunk/src/modules/resource/java/src/org/apache/lenya/cms/site/usecases/CreateResource.java, andreas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |