{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb-java/issues/48","labels_url":"https://api.github.com/repos/influxdb/influxdb-java/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb-java/issues/48/comments","events_url":"https://api.github.com/repos/influxdb/influxdb-java/issues/48/events","html_url":"https://github.com/influxdb/influxdb-java/issues/48","id":92505717,"number":48,"title":"InfluxDB.write NullPointerException","user":{"login":"aosobov","id":1354920,"avatar_url":"https://avatars.githubusercontent.com/u/1354920?v=3","gravatar_id":"","url":"https://api.github.com/users/aosobov","html_url":"https://github.com/aosobov","followers_url":"https://api.github.com/users/aosobov/followers","following_url":"https://api.github.com/users/aosobov/following{/other_user}","gists_url":"https://api.github.com/users/aosobov/gists{/gist_id}","starred_url":"https://api.github.com/users/aosobov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aosobov/subscriptions","organizations_url":"https://api.github.com/users/aosobov/orgs","repos_url":"https://api.github.com/users/aosobov/repos","events_url":"https://api.github.com/users/aosobov/events{/privacy}","received_events_url":"https://api.github.com/users/aosobov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-01T23:21:16Z","updated_at":"2015-07-02T07:38:05Z","closed_at":null,"body":"Hi,\r\n\r\nUsing InfluxDB.write(final String database, final String retentionPolicy, final Point point) throws a NullPointerException when used with a valid database, retentionPolicy, and point.\r\n\r\nStack Trace:\r\njava.lang.NullPointerException\r\n\torg.influxdb.impl.TimeUtil.toTimePrecision(TimeUtil.java:21)\r\n\torg.influxdb.impl.InfluxDBImpl.write(InfluxDBImpl.java:155)\r\n\torg.influxdb.impl.InfluxDBImpl.write(InfluxDBImpl.java:140)\r\n\r\nIt seems that the precision of the BatchPoints object is being accessed, but it is null as it is never set when the BatchPoints object is created (InfluxDBImpl.java:138).\r\n\r\nI am using version 2.0.\r\n\r\n\r\nThanks\r\nAnton"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb-java/issues/comments/117945088","html_url":"https://github.com/influxdb/influxdb-java/issues/48#issuecomment-117945088","issue_url":"https://api.github.com/repos/influxdb/influxdb-java/issues/48","id":117945088,"user":{"login":"majst01","id":410110,"avatar_url":"https://avatars.githubusercontent.com/u/410110?v=3","gravatar_id":"","url":"https://api.github.com/users/majst01","html_url":"https://github.com/majst01","followers_url":"https://api.github.com/users/majst01/followers","following_url":"https://api.github.com/users/majst01/following{/other_user}","gists_url":"https://api.github.com/users/majst01/gists{/gist_id}","starred_url":"https://api.github.com/users/majst01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majst01/subscriptions","organizations_url":"https://api.github.com/users/majst01/orgs","repos_url":"https://api.github.com/users/majst01/repos","events_url":"https://api.github.com/users/majst01/events{/privacy}","received_events_url":"https://api.github.com/users/majst01/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T07:38:05Z","updated_at":"2015-07-02T07:38:05Z","body":"Hi Anton,\r\n\r\ncan you please pull the latest version and try to reproduce, i did a lot of fixes in the last few days regarding time and BatchPoints."}}