We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e03ccb9 commit 8ba7845Copy full SHA for 8ba7845
1 file changed
cookbook/copilot-sdk/java/recipe/AccessibilityReport.java
@@ -98,7 +98,8 @@ public static void main(String[] args) throws Exception {
98
99
// Prompt user for test generation
100
System.out.print("Would you like to generate Playwright accessibility tests? (y/n): ");
101
- String generateTests = reader.readLine().trim();
+ String generateTestsLine = reader.readLine();
102
+ String generateTests = generateTestsLine == null ? "" : generateTestsLine.trim();
103
104
if (generateTests.equalsIgnoreCase("y") || generateTests.equalsIgnoreCase("yes")) {
105
var testLatch = new CountDownLatch(1);
0 commit comments