meghrathod / chatX

readLine result is read without a null check JAVA-E0220
Bug risk
Critical
2 occurrences in this check
The result of this call to readLine is not null checked
193    public void run() {
194        String str;
195        try {
196            str = nis.readLine();197            while (!str.equals("End")) {
198                ta.append(str);
199                str = nis.readLine();
The result of this call to readLine is not null checked
 74    public void run() {
 75        String str;
 76        try {
 77            str = nis.readLine(); 78            while (!str.equals("End")) {
 79                ta.append(str);
 80                str = nis.readLine();