Commit d7b42ef
Update FileUtil.java (#24)
* Update FileUtil.java
Update to the FileUtil to make the java script resource loading work in an OSGI environment. Kept the original loader to ensure backwards compatibility. Essentially checks to make sure the InputStream is found. If not, it will try loading the resource using the proper method for an OSGI environment. If it still is unable to load the file, it will throw an exception to avoid a non descriptive null pointer exception.
* Update FileUtil.java
Forgot the import java.io.InputStream1 parent 184d689 commit d7b42ef
File tree
1 file changed
+9
-1
lines changed- src/main/java/com/assertthat/selenium_shutterbug/utils/file
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
0 commit comments