Hello everyone, I am a new with JAVA and I have one problem now which
I can not figure out now, maybe I am tired. Let's get to the problem.
3 small parts of the code:
Boolean linksVault[][] = null;
if (!fLoadData(linksVault, args[0])) {
System.out.println("Kazkas blogai ir tiek");
System.exit(1);
}
.........
private static boolean fLoadData(Boolean[][] linksVault, final
String fName) {
.........
linksVault = new Boolean[countTop][countTop];
So I send linksVault reference to the fLoadData, which then creates
the matrix of Boolean object it everything is perfect with it inside
that method, but outside it always get NullPointerException. It looks
like linksVault does not point to the matrix, any ideas way?
Thanks,
david


|