Skip to content

Instantly share code, notes, and snippets.

@Fuud
Created October 30, 2014 12:17
Show Gist options
  • Save Fuud/54bfa9e12244a84c417d to your computer and use it in GitHub Desktop.
Save Fuud/54bfa9e12244a84c417d to your computer and use it in GitHub Desktop.
GridKit. Field access. NPE.
import org.gridkit.nanocloud.Cloud;
import org.gridkit.nanocloud.CloudFactory;
import org.gridkit.vicluster.ViNode;
import org.gridkit.vicluster.ViProps;
import org.junit.Test;
public class UseFieldTest {
private int port = 8080;
@Test
public void verify_password_auth() {
Cloud c = CloudFactory.createCloud();
final ViNode allNodes = c.node("**");
ViProps.at(allNodes).setLocalType();
c.node("node1").exec(new Runnable() {
@Override
public void run() {
System.out.println(port);
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment