I\'m facing an issue regarding a static variable that i\'m am using all over my project(it contains some fields from a file). The variable loses her value in some cases, not
You my want to make sure, first, that you don't inadvertently reset that variable yourself. For this you may want to create, say, getMyVariable() and setMyVariable() functions, put some logging into them and use them instead of accessing the variable directly.