java.lang.IllegalArgumentException, the Chinese meaning is illegal parameter exception. There are many types of reasons for this exception, which require specific analysis of the specific situation.
(Recommended tutorial: java introductory program)
Here we only discuss one type, if the prompt after the exception is: input == null!. As shown below:
#The reason for this exception is: there is an error in the code for writing the path in the program, and the path information should be checked.
Explanation: The following prompt is input == null!, which in Chinese means that the input is empty. It means that when the program is executed, no resources are obtained (in the above, it means that the picture resources are not obtained). When these initial data are not obtained, there is no way to operate on them, resulting in an exception.
(Video tutorial recommendation: java video tutorial)
The above is the detailed content of How to solve java.lang.IllegalArgumentException: input == null! exception. For more information, please follow other related articles on the PHP Chinese website!