myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1780235 - /myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java
Date Wed, 25 Jan 2017 16:48:57 GMT
Author: lofwyr
Date: Wed Jan 25 16:48:57 2017
New Revision: 1780235

URL: http://svn.apache.org/viewvc?rev=1780235&view=rev
Log:
fix ServerInfo.getStableVersion()
* "version" could be 'null' if QUnitTests are executed from IDE (which
cause in many failed tests)
[developed by hnoeth]

Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java?rev=1780235&r1=1780234&r2=1780235&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/ServerInfo.java
Wed Jan 25 16:48:57 2017
@@ -109,7 +109,7 @@ public class ServerInfo {
   }
 
   public String getStableVersion() {
-    if (version.endsWith("-SNAPSHOT")) {
+    if (version != null && version.endsWith("-SNAPSHOT")) {
       StringTokenizer tokenizer = new StringTokenizer(version, ".-");
       int major = Integer.parseInt(tokenizer.nextToken());
       int minor = Integer.parseInt(tokenizer.nextToken());



Mime
View raw message