<commit_before>package com.dpanayotov.simpleweather.util;

import com.dpanayotov.simpleweather.R;

public class WeatherImageUtil {
	public static final int returnImageResource(String icon) {
		switch (icon) {
		case "clear-day":
			return R.drawable.clear_day;
		case "clear-night":<commit_msg>npe fix<commit_after>package com.dpanayotov.simpleweather.util;

import com.dpanayotov.simpleweather.R;

public class WeatherImageUtil {
	public static final int returnImageResource(String icon) {
		if(icon==null){
			return 0;
		}
		switch (icon) {
		case "clear-day":
			return R.drawable.clear_day;
		case "clear-night":
{'fraction_non_alphanumeric': 0.1053484602917342, 'fraction_numerical': 0.0016207455429497568, 'mean_word_length': 5.0, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6962792', 'n_tokens_mistral': 230, 'n_tokens_neox': 206, 'n_words': 45}