Changeset d7753e6


Ignore:
Timestamp:
Aug 12, 2010, 9:46:56 PM (7 years ago)
Author:
Carljohan Carlsson
Branches:
master
Children:
2e067d5
Parents:
b7b11c8
Message:

Added check to avoid NPE when invalid files is parsed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/src/main/java/de/erichseifert/warp/core/DataPresenter.java

    rb7b11c8 rd7753e6  
    8888                                        replayParserCache.put(mimeType, parsers);
    8989                                }
     90
     91                if(parsers == null) {
     92                    System.err.println(String.format("Could not find parser for file '%s'", replayFile.getAbsolutePath()));
     93                    continue;
     94                }
    9095
    9196                                // Parse replay
Note: See TracChangeset for help on using the changeset viewer.