vivekkoya / classfiles

readLine result is read without a null check JAVA-E0220
Bug risk
Critical
a year ago2 years old
The result of this call to readLine is not null checked
285					String name = br.readLine();
286					if (name.equals("EOF"))
287						return;
288					String paClass = br.readLine();289					String position = br.readLine();
290					String groupName = br.readLine();
291					if (paClass.equals("First")) {
The result of this call to readLine is not null checked
282		try (var br = new BufferedReader(fr)) {
283			while (br.ready()) {
284				for (int i = 0; i < 4; ++i) {
285					String name = br.readLine();286					if (name.equals("EOF"))
287						return;
288					String paClass = br.readLine();