Reputation: 131
Suppose I have this piece of code:
public class Class1 extends Activity
{
private int [] array;
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
someFunction(array.length); <--- NullPointerException
}
}
Normally the LogCat in eclipse tells me what the exception is, and where is the line that is causing trouble, but for an unknown reason, it does not anymore. Instead, it just throw the following error :
12-30 22:27:06.650: E/Trace(28894): error opening trace file: No such file or directory (2)
12-30 22:27:06.670: W/dalvikvm(28894): Refusing to reopen boot DEX '/system/framework/hwframework.jar'
How can I solve this? I´ve seen many posts speaking of this problem, but I haven´t been able to solve the issue. Thanx.
Upvotes: 2
Views: 460
Reputation: 131
I found that the only way to solve the issue, was shutting down eclipse and starting again. I dont know why this happens, but restarting fixed it.
Upvotes: 1