Title: Several potential NullPointerException bugs. · Issue #16 · swordapp/JavaServer2.0 · GitHub
Open Graph Title: Several potential NullPointerException bugs. · Issue #16 · swordapp/JavaServer2.0
X Title: Several potential NullPointerException bugs. · Issue #16 · swordapp/JavaServer2.0
Description: Hi all, Our tool has found several potential NPE bugs. Variable md5Stream may be null due to the line 95. However, another access while( (count = md5Stream.read(bytes)) != -1 ) to the variable doesn't have the null check. Similarly, null...
Open Graph Description: Hi all, Our tool has found several potential NPE bugs. Variable md5Stream may be null due to the line 95. However, another access while( (count = md5Stream.read(bytes)) != -1 ) to the variable does...
X Description: Hi all, Our tool has found several potential NPE bugs. Variable md5Stream may be null due to the line 95. However, another access while( (count = md5Stream.read(bytes)) != -1 ) to the variable does...
Opengraph URL: https://github.com/swordapp/JavaServer2.0/issues/16
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Several potential NullPointerException bugs.","articleBody":"Hi all,\r\n\r\nOur tool has found several potential NPE bugs.\r\n\r\n\r\n1. Variable ```md5Stream``` may be null due to the line [95](https://github.com/swordapp/JavaServer2.0/tree/sword2-server-1.0/src/main/java/org/swordapp/server/ChecksumUtils.java#L95). However, another access [```while( (count = md5Stream.read(bytes)) != -1 )```](https://github.com/swordapp/JavaServer2.0/tree/sword2-server-1.0/src/main/java/org/swordapp/server/ChecksumUtils.java#L67) to the variable doesn't have the null check.\r\n\r\n2. Similarly, null checks are inconsistent at line [55](https://github.com/swordapp/JavaServer2.0/tree/sword2-server-1.0/src/main/java/org/swordapp/server/DepositReceipt.java#L55) and line [52](https://github.com/swordapp/JavaServer2.0/tree/sword2-server-1.0/src/main/java/org/swordapp/server/DepositReceipt.java#L52) in method ```getAbderaEntry```.\r\n\r\nThanks.","author":{"url":"https://github.com/ITWOI","@type":"Person","name":"ITWOI"},"datePublished":"2019-11-14T06:09:34Z","url":"https://github.com/swordapp/JavaServer2.0/issues/16"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:71a52189-872d-4f8f-c52f-9c52522646cc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD44:BB5B5:14A20:1B3EA:6B009387 |
| html-safe-nonce | 50d4a76f940c125950c6480785cfad1f98c4a6be49d84f6c8d3f83cc451d3840 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDQ0OkJCNUI1OjE0QTIwOjFCM0VBOjZCMDA5Mzg3IiwidmlzaXRvcl9pZCI6IjI5ODc2ODExMTY2MzIxNTkxMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b324de3479a4a7a6e03daa265f8bdaf7cbd24b3823e1bd362b1f9f62762340ed |
| hovercard-subject-tag | issue:522646749 |
| 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/swordapp/JavaServer2.0/16/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97275be56c5898ea94b53ac2749dc276134c8e25f9747ea6251dbb6efe85514d/swordapp/JavaServer2.0/issues/16 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97275be56c5898ea94b53ac2749dc276134c8e25f9747ea6251dbb6efe85514d/swordapp/JavaServer2.0/issues/16 |
| og:image:alt | Hi all, Our tool has found several potential NPE bugs. Variable md5Stream may be null due to the line 95. However, another access while( (count = md5Stream.read(bytes)) != -1 ) to the variable does... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ITWOI |
| hostname | github.com |
| expected-hostname | github.com |
| None | c710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08 |
| turbo-cache-control | no-preview |
| go-import | github.com/swordapp/JavaServer2.0 git https://github.com/swordapp/JavaServer2.0.git |
| octolytics-dimension-user_id | 1606751 |
| octolytics-dimension-user_login | swordapp |
| octolytics-dimension-repository_id | 4202272 |
| octolytics-dimension-repository_nwo | swordapp/JavaServer2.0 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4202272 |
| octolytics-dimension-repository_network_root_nwo | swordapp/JavaServer2.0 |
| 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 | be616a2a6ec1c609d6e002896dff5352d5c5f28b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width