Skip to content

Commit c99fc46

Browse files
author
Andrey Turbanov
committed
Avoid NullPointerException if inputLine is 'null'
1 parent e95ba64 commit c99fc46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,8 @@ protected void analytics() {
11391139
boolean nextAvailable = false;
11401140
if (!newVersion.contains("SNAPSHOT")) {
11411141
try {
1142-
while ((inputLine = in.readLine().trim()) != null) {
1142+
while ((inputLine = in.readLine()) != null) {
1143+
inputLine = inputLine.trim();
11431144
if (inputLine.startsWith("ATMO23_VERSION=")) {
11441145
newVersion = inputLine.substring("ATMO23_VERSION=".length());
11451146
} else if (inputLine.startsWith("CLIENT3_VERSION=")) {

0 commit comments

Comments
 (0)