#vulnerable code 
                             private void parseDisabledCategories() throws PluginLoadError {
		extractDisabledCategoriesFromConfig();
		// Need PetMaster with a minimum version of 1.4 for PetMasterGive and PetMasterReceive categories.
		if ((!disabledCategories.contains(NormalAchievements.PETMASTERGIVE)
				|| !disabledCategories.contains(NormalAchievements.PETMASTERRECEIVE))
				&& (!Bukkit.getPluginManager().isPluginEnabled("PetMaster") || Integer.parseInt(Character.toString(
						Bukkit.getPluginManager().getPlugin("PetMaster").getDescription().getVersion().charAt(2))) < 4)) {
			disabledCategories.add(NormalAchievements.PETMASTERGIVE);
			disabledCategories.add(NormalAchievements.PETMASTERRECEIVE);
			logger.warning("Overriding configuration: disabling PetMasterGive and PetMasterReceive categories.");
			logger.warning(
					"Ensure you have placed Pet Master with a minimum version of 1.4 in your plugins folder or add PetMasterGive and PetMasterReceive to the DisabledCategories list in config.yml.");
		}
		// Elytras introduced in Minecraft 1.9.
		if (!disabledCategories.contains(NormalAchievements.DISTANCEGLIDING) && serverVersion < 9) {
			disabledCategories.add(NormalAchievements.DISTANCEGLIDING);
			logger.warning("Overriding configuration: disabling DistanceGliding category.");
			logger.warning(
					"Elytra are not available in your Minecraft version, please add DistanceGliding to the DisabledCategories list in config.yml.");
		}
		// Llamas introduced in Minecraft 1.11.
		if (!disabledCategories.contains(NormalAchievements.DISTANCELLAMA) && serverVersion < 11) {
			disabledCategories.add(NormalAchievements.DISTANCELLAMA);
			logger.warning("Overriding configuration: disabling DistanceLlama category.");
			logger.warning(
					"Llamas not available in your Minecraft version, please add DistanceLlama to the DisabledCategories list in config.yml.");
		}
		// Breeding event introduced in Bukkit 1.10.2.
		if (!disabledCategories.contains(MultipleAchievements.BREEDING) && serverVersion < 10) {
			disabledCategories.add(MultipleAchievements.BREEDING);
			logger.warning("Overriding configuration: disabling Breeding category.");
			logger.warning(
					"The breeding event is not available in your server version, please add Breeding to the DisabledCategories list in config.yml.");
		}
		// Proper ProjectileHitEvent introduced in Bukkit 1.11.
		if (!disabledCategories.contains(MultipleAchievements.TARGETSSHOT) && serverVersion < 11) {
			disabledCategories.add(MultipleAchievements.TARGETSSHOT);
			logger.warning("Overriding configuration: disabling TargetsShot category.");
			logger.warning(
					"The projectile hit event is not fully available in your server version, please add TargetsShot to the DisabledCategories list in config.yml.");
		}
	} 
                            #location 7 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             private void parseDisabledCategories() throws PluginLoadError {
		extractDisabledCategoriesFromConfig();
		// Need PetMaster with a minimum version of 1.4 for PetMasterGive and PetMasterReceive categories.
		if ((!disabledCategories.contains(NormalAchievements.PETMASTERGIVE)
				|| !disabledCategories.contains(NormalAchievements.PETMASTERRECEIVE))
				&& (!Bukkit.getPluginManager().isPluginEnabled("PetMaster") || getPetMasterMinorVersion() < 4)) {
			disabledCategories.add(NormalAchievements.PETMASTERGIVE);
			disabledCategories.add(NormalAchievements.PETMASTERRECEIVE);
			logger.warning("Overriding configuration: disabling PetMasterGive and PetMasterReceive categories.");
			logger.warning(
					"Ensure you have placed Pet Master with a minimum version of 1.4 in your plugins folder or add PetMasterGive and PetMasterReceive to the DisabledCategories list in config.yml.");
		}
		// Elytras introduced in Minecraft 1.9.
		if (!disabledCategories.contains(NormalAchievements.DISTANCEGLIDING) && serverVersion < 9) {
			disabledCategories.add(NormalAchievements.DISTANCEGLIDING);
			logger.warning("Overriding configuration: disabling DistanceGliding category.");
			logger.warning(
					"Elytra are not available in your Minecraft version, please add DistanceGliding to the DisabledCategories list in config.yml.");
		}
		// Llamas introduced in Minecraft 1.11.
		if (!disabledCategories.contains(NormalAchievements.DISTANCELLAMA) && serverVersion < 11) {
			disabledCategories.add(NormalAchievements.DISTANCELLAMA);
			logger.warning("Overriding configuration: disabling DistanceLlama category.");
			logger.warning(
					"Llamas not available in your Minecraft version, please add DistanceLlama to the DisabledCategories list in config.yml.");
		}
		// Breeding event introduced in Bukkit 1.10.2.
		if (!disabledCategories.contains(MultipleAchievements.BREEDING) && serverVersion < 10) {
			disabledCategories.add(MultipleAchievements.BREEDING);
			logger.warning("Overriding configuration: disabling Breeding category.");
			logger.warning(
					"The breeding event is not available in your server version, please add Breeding to the DisabledCategories list in config.yml.");
		}
		// Proper ProjectileHitEvent introduced in Bukkit 1.11.
		if (!disabledCategories.contains(MultipleAchievements.TARGETSSHOT) && serverVersion < 11) {
			disabledCategories.add(MultipleAchievements.TARGETSSHOT);
			logger.warning("Overriding configuration: disabling TargetsShot category.");
			logger.warning(
					"The projectile hit event is not fully available in your server version, please add TargetsShot to the DisabledCategories list in config.yml.");
		}
	}