This is correcting a NPE bug.
Thanks to Rainer Schuler that signals the bug.
The NullPointerException has been corrected:
The stack trace of the corrected bug:
line 257:            
Log.e(tag, responseBody);

For responseBody  == null this gives a null-pointer exception

Stack-trace:

 FATAL EXCEPTION: AsyncTask #2\n01-30 07:45:28.243 E/AndroidRuntime
(7434): java.lang.RuntimeException: An error occured while executing
doInBackground()\n01-30 07:45:28.243 E/AndroidRuntime
(7434):     at android.os.AsyncTask$3.done(AsyncTask.java:299)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
java.util.concurrent.FutureTask.setException(FutureTask.java:124)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
java.util.concurrent.FutureTask.run(FutureTask.java:137)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at java.lang.Thread.run(Thread.java:856)\n01-30 07:45:28.243
E/AndroidRuntime
(7434): Caused by: java.lang.NullPointerException: println needs a
message\n01-30 07:45:28.243 E/AndroidRuntime
(7434):     at android.util.Log.println_native(Native Method)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at android.util.Log.e(Log.java:297)\n01-30 07:45:28.243
E/AndroidRuntime
(7434):     at
com.android2ee.formation.librairies.google.map.utils.direction.GDirectionsApiUtils.getJSONDirection(GDirectionsApiUtils.java:257)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
com.android2ee.formation.librairies.google.map.utils.direction.GDirectionsApiUtils.access$0(GDirectionsApiUtils.java:238)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
com.android2ee.formation.librairies.google.map.utils.direction.GDirectionsApiUtils$GoogleDirectionAsyncRestCall.doInBackground(GDirectionsApiUtils.java:208)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
com.android2ee.formation.librairies.google.map.utils.direction.GDirectionsApiUtils$GoogleDirectionAsyncRestCall.doInBackground(GDirectionsApiUtils.java:1)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at android.os.AsyncTask$2.call(AsyncTask.java:287)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)\n01-30
07:45:28.243 E/AndroidRuntime
(7434):     ... 5 more\n01-30 07:45:28.298 D/DbIstTs