Subversion Repositories SmartDukaan

Rev

Rev 13404 | Rev 13605 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13404 Rev 13604
Line 385... Line 385...
385
    	
385
    	
386
	}
386
	}
387
	private List<Long> getRiskyPausedItems() {
387
	private List<Long> getRiskyPausedItems() {
388
		try {
388
		try {
389
			Reader reader = new FileReader(Utils.EXPORT_PATH + Utils.RISKY_PAUSED_JSON);
389
			Reader reader = new FileReader(Utils.EXPORT_PATH + Utils.RISKY_PAUSED_JSON);
390
			return new Gson().fromJson(reader, new TypeToken<List<Long>>() {}.getType());
390
			List<Long> result = new Gson().fromJson(reader, new TypeToken<List<Long>>() {}.getType());
-
 
391
			if(result==null){
-
 
392
				result = new ArrayList<Long>(); 
-
 
393
			}
-
 
394
			return result;
391
		} catch (FileNotFoundException e) {
395
		} catch (FileNotFoundException e) {
392
			log.error("Could not read paused file");
396
			log.error("Could not read paused file");
393
			e.printStackTrace();
397
			e.printStackTrace();
394
			return new ArrayList<Long>();
398
			return new ArrayList<Long>();
395
		}
399
		}