[
https://issues.apache.org/jira/browse/TUSCANY-3080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramkumar Ramalingam resolved TUSCANY-3080.
------------------------------------------
Resolution: Fixed
Committed revision 784700 in 1.x.
> NPE thrown while checking for Spring Version
> --------------------------------------------
>
> Key: TUSCANY-3080
> URL: https://issues.apache.org/jira/browse/TUSCANY-3080
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Spring Implementation Extension
> Affects Versions: Java-SCA-Next
> Reporter: Ramkumar Ramalingam
> Assignee: Ramkumar Ramalingam
> Fix For: Java-SCA-Next
>
>
> The below code
> if (! SpringVersion.getVersion().equals("2.5.5")) {
> throw new RuntimeException("Unsupported version: Use only
> Spring Framework Version 2.5.5");
> }
> throws NullPointerException.... the reason could be that the getVersion() can
> return null if it can't determine the version.
> public static String getVersion()
> Return the full version string of the present Spring codebase, or null
> if it cannot be determined.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.