TextProvider in ActionSupport not available after Serialization
---------------------------------------------------------------

                 Key: WW-2298
                 URL: https://issues.apache.org/struts/browse/WW-2298
             Project: Struts 2
          Issue Type: Bug
          Components: Core Actions
    Affects Versions: 2.0.9
         Environment: Struts 2.0.9
            Reporter: Robert-Jan Westerhof
            Priority: Minor


ActionSupport is TextAware, and has a TextProvider to support this 
functionality.
However, the TextProvider inside ActionSupport is transient and final 
(instantiated only once). 
After Serialization of the action, the TextProvider is null, and there is no 
way to re-instantiate it
(it just spawns NPEs after this).

Suggested patch: 
remove final modifier from TextProvider field, and add a private 
getTextProvider() method that
performs null-check / lazy instantiation via the factory.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to