Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 03832200BAE for ; Fri, 28 Oct 2016 13:53:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0208C160ADD; Fri, 28 Oct 2016 11:53:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4B766160AF5 for ; Fri, 28 Oct 2016 13:53:00 +0200 (CEST) Received: (qmail 14348 invoked by uid 500); 28 Oct 2016 11:52:59 -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 14024 invoked by uid 99); 28 Oct 2016 11:52:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2016 11:52:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BABF02C2A68 for ; Fri, 28 Oct 2016 11:52:58 +0000 (UTC) Date: Fri, 28 Oct 2016 11:52:58 +0000 (UTC) From: "Hudson (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4703) NullPointerException in ActionSupport when use ModelDriven MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 28 Oct 2016 11:53:01 -0000 [ https://issues.apache.org/jira/browse/WW-4703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15615184#comment-15615184 ] Hudson commented on WW-4703: ---------------------------- SUCCESS: Integrated in Jenkins build Struts-JDK7-master #544 (See [https://builds.apache.org/job/Struts-JDK7-master/544/]) WW-4703 Increases container field visibility (lukaszlenart: rev 24a97d33e68ddc44b3d6e3d77bf2be353c3c655a) * (edit) core/src/main/java/com/opensymphony/xwork2/ActionSupport.java > NullPointerException in ActionSupport when use ModelDriven > ---------------------------------------------------------- > > Key: WW-4703 > URL: https://issues.apache.org/jira/browse/WW-4703 > Project: Struts 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.5.5 > Environment: Windows 7 > WebSphere 8.5 > Reporter: billy > Fix For: 2.5.6 > > > When we use getText method in a ModelDriven's bean. We got NullPointerException in ActionSupport. We found the variable "container" is null when the bean is got from ModelDriven.getModel() > Following is the exception stack: > {noformat} > java.lang.NullPointerException > at com.opensymphony.xwork2.ActionSupport.getLocale(ActionSupport.java:68) > at com.opensymphony.xwork2.TextProviderSupport.getLocale(TextProviderSupport.java:329) > at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:204) > at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:119) > at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:86) > {noformat} > Note: we are upgrading the project from 2.3.24.3 to 2.5.5. In version 2.3.24.3 doesn't have this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)