← 返回首页
Fixed issue where file handler would sometimes return null for existing files; Optimized LIVELOAD file handler. by Katsute · Pull Request #118 · Ktt-Development/simplehttpserver · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Fixed issue where file handler would sometimes return null for existing files; Optimized LIVELOAD file handler.#118

Merged
Katsute merged 3 commits into
mainfrom
fix#117@d15bc78
Nov 17, 2020
Merged

Fixed issue where file handler would sometimes return null for existing files; Optimized LIVELOAD file handler.#118
Katsute merged 3 commits into
mainfrom
fix#117@d15bc78

Conversation

Katsute commented Nov 16, 2020
edited
Loading

Copy link
Copy Markdown
Member

Prerequisites

If all checks are not passed then the pull request will be closed.

  • My code follows the style listed in CONTRIBUTING.
  • I have checked that no other similar pull requests already exists.
  • Build compiles.
  • Build runs without exceptions.
  • I have added/modified documentation (if applicable).
  • I have added/modified test cases.

Changes Made

List changes made and/or relevant issues. Please keep changed in reverse chronological order (newest at top).

if(entry == null){ // add new entry if not already added and file exists
final File file = getFile(path);
return file != null && file.exists()
? files.put(context, new FileEntry(file, adapter, loadingOption))
: null;

Katsute added the bug Something isn't working as expected label Nov 16, 2020
Katsute self-assigned this Nov 16, 2020
Katsute added this to the 4.2.0 milestone Nov 16, 2020
Fixed files being added on liveload (this would cause memory issues over time).
Katsute added the optimization Optimizations label Nov 16, 2020
Katsute changed the title Fixed issue where file handler would sometimes return null for existing files. Fixed issue where file handler would sometimes return null for existing files; Optimized LIVELOAD file handler. Nov 16, 2020
Katsute merged commit e35aa59 into main Nov 17, 2020
Katsute deleted the fix#117@d15bc78 branch November 17, 2020 00:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working as expected optimization Optimizations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Folder that exists causes file handler to return null file.

1 participant

Footer

© 2026 GitHub, Inc.