Title: Code Analyzer throws Null Pointer Exception when run with no parameters · Issue #134 · codellm-devkit/codeanalyzer-java · GitHub
Open Graph Title: Code Analyzer throws Null Pointer Exception when run with no parameters · Issue #134 · codellm-devkit/codeanalyzer-java
X Title: Code Analyzer throws Null Pointer Exception when run with no parameters · Issue #134 · codellm-devkit/codeanalyzer-java
Description: Describe the bug Running code analyzer with no parameters produces a java.lang.NullPointerException To Reproduce Steps to reproduce the behavior: run: java -jar codeanalyzer-2.3.3.jar You will see: java.lang.RuntimeException: java.lang.N...
Open Graph Description: Describe the bug Running code analyzer with no parameters produces a java.lang.NullPointerException To Reproduce Steps to reproduce the behavior: run: java -jar codeanalyzer-2.3.3.jar You will see:...
X Description: Describe the bug Running code analyzer with no parameters produces a java.lang.NullPointerException To Reproduce Steps to reproduce the behavior: run: java -jar codeanalyzer-2.3.3.jar You will see:...
Opengraph URL: https://github.com/codellm-devkit/codeanalyzer-java/issues/134
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Code Analyzer throws Null Pointer Exception when run with no parameters","articleBody":"**Describe the bug**\n\nRunning code analyzer with no parameters produces a `java.lang.NullPointerException`\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. run: `java -jar codeanalyzer-2.3.3.jar`\n\nYou will see:\n```java\njava.lang.RuntimeException: java.lang.NullPointerException\n\tat com.ibm.cldk.CodeAnalyzer.run(CodeAnalyzer.java:124)\n\tat picocli.CommandLine.executeUserObject(CommandLine.java:1767)\n\tat picocli.CommandLine.access$900(CommandLine.java:145)\n\tat picocli.CommandLine$RunLast.handle(CommandLine.java:2139)\n\tat picocli.CommandLine$RunLast.handle(CommandLine.java:2106)\n\tat picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1973)\n\tat picocli.CommandLine.execute(CommandLine.java:1902)\n\tat com.ibm.cldk.CodeAnalyzer.main(CodeAnalyzer.java:113)\nCaused by: java.lang.NullPointerException\n\tat java.base/java.io.File.\u003cinit\u003e(File.java:278)\n\tat com.ibm.cldk.utils.BuildProject.downloadLibraryDependencies(BuildProject.java:223)\n\tat com.ibm.cldk.CodeAnalyzer.analyze(CodeAnalyzer.java:145)\n\tat com.ibm.cldk.CodeAnalyzer.run(CodeAnalyzer.java:122)\n\t... 7 more\n```\n\n**Expected behavior**\n\nI expect code analyzer to print a nice welcome message with perhaps some help on how to use it. It could even return nothing. But throwing a NullPointer Exception should not be the default behavior.\n\n**Logs**\nIf applicable, add logs to help explain your problem.\n\n```java\njava.lang.RuntimeException: java.lang.NullPointerException\n\tat com.ibm.cldk.CodeAnalyzer.run(CodeAnalyzer.java:124)\n\tat picocli.CommandLine.executeUserObject(CommandLine.java:1767)\n\tat picocli.CommandLine.access$900(CommandLine.java:145)\n\tat picocli.CommandLine$RunLast.handle(CommandLine.java:2139)\n\tat picocli.CommandLine$RunLast.handle(CommandLine.java:2106)\n\tat picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1973)\n\tat picocli.CommandLine.execute(CommandLine.java:1902)\n\tat com.ibm.cldk.CodeAnalyzer.main(CodeAnalyzer.java:113)\nCaused by: java.lang.NullPointerException\n\tat java.base/java.io.File.\u003cinit\u003e(File.java:278)\n\tat com.ibm.cldk.utils.BuildProject.downloadLibraryDependencies(BuildProject.java:223)\n\tat com.ibm.cldk.CodeAnalyzer.analyze(CodeAnalyzer.java:145)\n\tat com.ibm.cldk.CodeAnalyzer.run(CodeAnalyzer.java:122)\n\t... 7 more\n```\n\n**Additional context**\nAdd any other context about the problem here.\n","author":{"url":"https://github.com/rofrano","@type":"Person","name":"rofrano"},"datePublished":"2025-05-23T13:25:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/134/codeanalyzer-java/issues/134"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1c8db03a-97b2-0ae8-39ee-bd0bc804ec83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C886:E692A:26ABAFE:345DDCE:698DACF5 |
| html-safe-nonce | 31634e282d63b2fb58e8e79aed511443fa19f1adc3267a249f189b719aa0bc12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODg2OkU2OTJBOjI2QUJBRkU6MzQ1RERDRTo2OThEQUNGNSIsInZpc2l0b3JfaWQiOiIxMTE0NDM2OTM3MjUzMjM1OTU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 50cb845b97368e43c82ebc06b7ccaed755f25874257e592525347cf53f4c5468 |
| hovercard-subject-tag | issue:3086372843 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/codellm-devkit/codeanalyzer-java/134/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a9bb5a18308b310e467ea053d886eb6d55e1bf4a27bd632a578b222ae197528/codellm-devkit/codeanalyzer-java/issues/134 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a9bb5a18308b310e467ea053d886eb6d55e1bf4a27bd632a578b222ae197528/codellm-devkit/codeanalyzer-java/issues/134 |
| og:image:alt | Describe the bug Running code analyzer with no parameters produces a java.lang.NullPointerException To Reproduce Steps to reproduce the behavior: run: java -jar codeanalyzer-2.3.3.jar You will see:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rofrano |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8c7947c0c592efeab6162b9909ad11fa43bff8b0cb5ff43273dc25e41979d43e |
| turbo-cache-control | no-preview |
| go-import | github.com/codellm-devkit/codeanalyzer-java git https://github.com/codellm-devkit/codeanalyzer-java.git |
| octolytics-dimension-user_id | 197800760 |
| octolytics-dimension-user_login | codellm-devkit |
| octolytics-dimension-repository_id | 731300153 |
| octolytics-dimension-repository_nwo | codellm-devkit/codeanalyzer-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 731300153 |
| octolytics-dimension-repository_network_root_nwo | codellm-devkit/codeanalyzer-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b22a9fbf4dea601ec149a9e5362e0558df79b505 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width