Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CEEC310020 for ; Wed, 2 Sep 2015 06:46:46 +0000 (UTC) Received: (qmail 69677 invoked by uid 500); 2 Sep 2015 06:46:46 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 69626 invoked by uid 500); 2 Sep 2015 06:46:46 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 69554 invoked by uid 99); 2 Sep 2015 06:46:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2015 06:46:46 +0000 Date: Wed, 2 Sep 2015 06:46:46 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (WW-4542) FreemarkerManager class throws null pointer exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart updated WW-4542: ------------------------------ Fix Version/s: 2.3.x > FreemarkerManager class throws null pointer exception > ------------------------------------------------------ > > Key: WW-4542 > URL: https://issues.apache.org/jira/browse/WW-4542 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Tags > Affects Versions: 2.3.24 > Environment: Win7 > WebLogic 2.1.3 > JDK 1.7 > Reporter: Rin Saunders > Priority: Minor > Fix For: 2.3.x > > > Am getting a null pointer error in the FreemarkerManager class. It occurs in the setContainer method. The code below seems to assume that getInstanceNames returns an empty set if there are no matches. In fact, it returns a null, which is legit according to the XWork doc. This occurs in Freemarker 2.3.23 under WebLogic 12.1.3. > {code:java} > Map oldMap = new HashMap(); > Set oldPrefixes = container.getInstanceNames(TagLibrary.class); > for (String prefix : oldPrefixes) { > oldMap.put(prefix, container.getInstance(TagLibrary.class, prefix)); > {code} > Not sure if this affects the presentation of Struts2 views. Is there a workaround or fix? -- This message was sent by Atlassian JIRA (v6.3.4#6332)