8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ecf80 commit 25713c9Copy full SHA for 25713c9
taskqueue/pull/src/main/java/TaskQueueSample.java
@@ -172,8 +172,12 @@ private static Tasks getLeasedTasks(Taskqueue taskQueue) throws IOException {
172
*/
173
private static void processTask(Task task) {
174
byte[] payload = Base64.decodeBase64(task.getPayloadBase64());
175
- System.out.println("Payload for the task:");
176
- System.out.println(new String(payload));
+ if (payload != null) {
+ System.out.println("Payload for the task:");
177
+ System.out.println(new String(payload));
178
+ } else {
179
+ System.out.println("This task has no payload.");
180
+ }
181
}
182
/**
183
* Method that sends a delete request for the specified task object to the taskqueue service.
0 commit comments