#fixed code
                             private void updateTranslationProgressMap(String langCode, int value) {
		if (getDefaultLanguageCode().equals(langCode)) {
			return;
		}

		double defsize = getDefaultLanguage().size();
		double approved = value;

		Map<String, Integer> progress = getTranslationProgressMap();
		Integer percent = progress.get(langCode);
		if (value == PLUS) {
			approved = Math.round(percent * (defsize / 100) + 1);
		} else if (value == MINUS) {
			approved = Math.round(percent * (defsize / 100) - 1);
		}

		// allow 3 identical words per language (i.e. Email, etc)
		if (approved >= defsize - 5) {
			approved = defsize;
		}

		if (((int) defsize) == 0) {
			progress.put(langCode, 0);
		} else {
			progress.put(langCode, (int) ((approved / defsize) * 100));
		}
		Sysprop updatedProgress = new Sysprop(progressKey);
		for (Map.Entry<String, Integer> entry : progress.entrySet()) {
			updatedProgress.addProperty(entry.getKey(), entry.getValue());
		}
		langProgressCache = updatedProgress;
		if (percent < 100 && !percent.equals(progress.get(langCode))) {
			pc.create(updatedProgress);
		}
	}
#vulnerable code 
                             private void updateTranslationProgressMap(String langCode, int value) {
		if (getDefaultLanguageCode().equals(langCode)) {
			return;
		}

		double defsize = getDefaultLanguage().size();
		double approved = value;

		Map<String, Integer> progress = getTranslationProgressMap();
		Integer percent = progress.get(langCode);
		if (value == PLUS) {
			approved = Math.round(percent * (defsize / 100) + 1);
		} else if (value == MINUS) {
			approved = Math.round(percent * (defsize / 100) - 1);
		}

		// allow 3 identical words per language (i.e. Email, etc)
		if (approved >= defsize - 5) {
			approved = defsize;
		}

		if (((int) defsize) == 0) {
			progress.put(langCode, 0);
		} else {
			progress.put(langCode, (int) ((approved / defsize) * 100));
		}
		if (percent < 100 && !percent.equals(progress.get(langCode))) {
			Sysprop s = new Sysprop(progressKey);
			for (Map.Entry<String, Integer> entry : progress.entrySet()) {
				s.addProperty(entry.getKey(), entry.getValue());
			}
			pc.create(s);
		}
	} 
                            #location 27 
                            #vulnerability type NULL_DEREFERENCE