Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
- FIX: Fixed an issue where providing a String value containing non-n…
Browse files Browse the repository at this point in the history
…umeric characters in a "greater than" operation would result in an exception.
  • Loading branch information
sebastian-raubach committed Dec 10, 2019
1 parent 5acf560 commit 1c08af8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Binary file modified germinate-importer.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
import jhi.germinate.shared.datastructure.*;
import jhi.germinate.shared.datastructure.database.*;
import jhi.germinate.shared.enums.*;
import jhi.germinate.shared.exception.*;
import jhi.germinate.shared.search.*;

/**
Expand Down Expand Up @@ -511,6 +512,15 @@ public String getHeaderStyleNames()
/* Now, we need to get ALL the database items that are in this table, no matter on which page to be able to select them. */
getData(new Pagination(0, Integer.MAX_VALUE, sortColumnName, ascending), filterObject, new DefaultAsyncCallback<PaginatedServerResult<List<T>>>(true)
{
@Override
public void onFailureImpl(Throwable caught)
{
if (caught instanceof InvalidArgumentException)
Notification.notify(Notification.Type.ERROR, Text.LANG.notificationCheckEditTextValue());
else
super.onFailureImpl(caught);
}

@Override
protected void onSuccessImpl(PaginatedServerResult<List<T>> result)
{
Expand Down Expand Up @@ -652,7 +662,10 @@ public void onFailureImpl(Throwable caught)
{
updateRowData(0, new ArrayList<>());

super.onFailureImpl(caught);
if (caught instanceof InvalidArgumentException)
Notification.notify(Notification.Type.ERROR, Text.LANG.notificationCheckEditTextValue());
else
super.onFailureImpl(caught);
}

@Override
Expand Down

0 comments on commit 1c08af8

Please sign in to comment.