Skip to content

nullexception #3

Description

@XiuLin

i suggest:

IniEditer.java

public void load(BufferedReader reader) throws IOException {
while (reader.ready()) {
reader.mark(NAME_MAXLENGTH);
String line = reader.readLine().trim();

to
public void load(BufferedReader reader) throws IOException {
while (reader.ready()) {
reader.mark(NAME_MAXLENGTH);
String strrawline = reader.readLine();
if (null == strrawline) {
return;
}

            String line = strrawline.trim();

when a /0D /0A at the end of the ini file. if (line.length() > 0 && line.charAt(0) == HEADER_START) will cause nullexception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions