-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SimpleGallery.java #756
base: master
Are you sure you want to change the base?
Conversation
Fix nullException
the chrash get fixed with that |
@Kronos2308 It performs very well. When I use a proxy, the installation package you upload to the mega can log in correctly and load the image correctly. It passed my test. |
whass a litle hell because one of the libraries got deprected and deleted |
I am a web application developer, so it seems that I may not be able to fully understand and solve this problem; but I believe you can solve this problem, come on |
|
Page.java public static String extToString(ImageExt ext) {
switch (ext) {
case GIF:
return "gif";
case PNG:
return "png";
case JPG:
return "jpg";
case WEBP:
return "webp";
}
return null;
}
public static char extToChar(ImageExt imageExt) {
switch (imageExt) {
case GIF:
return 'g';
case PNG:
return 'p';
case JPG:
return 'j';
case WEBP:
return 'w';
}
return '\0';
}
public static ImageExt charToExt(int ext) {
switch (ext) {
case 'g':
return ImageExt.GIF;
case 'p':
return ImageExt.PNG;
case 'j':
return ImageExt.JPG;
case 'w':
return ImageExt.WEBP;
}
return null;
} |
It is an interesting application. I only have Notepad++, so I work with that. |
Well done, so excited. |
Try to Fix nullException