e.printStackTrace();
}
}
public void showEditQuiz() throws NullPointerException{
FileChooser fileChooser = new FileChooser();
//set zip file extension filter
FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter("Zip files (*.zip)", "*.zip");
fileChooser.getExtensionFilters().add(extFilter);
//Opens zip file
fileChooser.setTitle("Open D2L Zip File");
fileChooser.setInitialDirectory(new File(System.getProperty("user.home")));
zipFile = fileChooser.showOpenDialog(null);
//Passes zip file to Zip file reader/ manifest reader
if(zipFile != null){
ZipReader<Manifest> reader = new ZipReader<>(zipFile,Manifest.class);
Manifest manifest = reader.getObjectFromXML(Manifest.FILE_NAME);
String quizFile = manifest.getResources().get(0).getHref();