I am having a null pointer exception while reading a file,Below is the code:
private static final String TASK_CUBES_PIECE_DEFINITIONS_PATH = "/task/src/cubes/definitions/";
InputStream is = PieceCollectionFactory.class .getResourceAsStream(TASK_CUBES_PIECE_DEFINITIONS_ PATH + getCollection() + "-set.piece");
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
Please help me out!