Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Fix a critical bug on destroying GitFragment when users don't setup git
Browse files Browse the repository at this point in the history
Signed-off-by: PranavPurwar <[email protected]>
  • Loading branch information
PranavPurwar committed Jul 17, 2023
1 parent 9dd1bd0 commit 03baa41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Cosmic IDE is a powerful and feature-rich IDE for JVM development on Android. It
the latest technologies, and offers a wide range of features that make it the perfect tool for
developers who want to build high-quality, bug-free applications.

## Installation

Currently Cosmic IDE Rewrite is in beta stage, and there is no stable release yet. You can download
the app from [here](

## Features

* Supports Java 17 and Kotlin 2.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class GitFragment : BaseBindingFragment<FragmentGitBinding>() {

override fun onDestroyView() {
super.onDestroyView()
repository.git.close()
if (this::repository.isInitialized) repository.git.close()
}

fun catchException(code: suspend () -> Unit) {
Expand Down

0 comments on commit 03baa41

Please sign in to comment.