Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions common/src/main/java/com/genexus/CommonUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -854,11 +854,7 @@ public static boolean dateCompare( Date left , Date right)
public static int strcmp( String left ,
String right )
{
return Comparator.nullsFirst(String::compareTo)
.compare(
left == null ? null : rtrim(left),
right == null ? null : rtrim(right)
);
return rtrim(left).compareTo(rtrim(right));
}

public static boolean strcmp2( String left ,
Expand Down
2 changes: 1 addition & 1 deletion java/src/main/java/com/genexus/internet/HttpContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ public String getBuildNumber(int buildN){
public String convertURL(String file)
{
String url = "";
if (file.equals(""))
if (file == null || file.equals(""))
{
return "";
}
Expand Down
Loading